Skip to content

Commit ab83cdb

Browse files
Fixed apply discount coupons for bundle product
Fixed apply discount coupons for bundle product with both virtual and simple product and "Ship Bundle Items" = "Separately"
1 parent 6494c9f commit ab83cdb

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Quote/Model/Quote

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Quote/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function beforeSave()
270270
*/
271271
public function getAddress()
272272
{
273-
if ($this->getQuote()->getItemsQty() == $this->getQuote()->getVirtualItemsQty()) {
273+
if ($this->getQuote()->isVirtual()) {
274274
$address = $this->getQuote()->getBillingAddress();
275275
} else {
276276
$address = $this->getQuote()->getShippingAddress();

0 commit comments

Comments
 (0)