Skip to content

Commit e562473

Browse files
committed
AC-2630 :: Getting error while adding product type Gift Card through Order By SKU in Customer Account
1 parent d6756f9 commit e562473

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040
<script type="text/x-magento-init">
4141
{
4242
"#product_addtocart_form": {
43-
"validation": {},
44-
"addToCart": {
45-
"cartButtonId": "#product-updatecart-button",
46-
"cartForm": "#product_addtocart_form"
47-
}
43+
"Magento_Catalog/js/validate-product": {}
4844
}
4945
}
5046
</script>

app/code/Magento/SalesRule/etc/extension_attributes.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<extension_attributes for="Magento\Quote\Api\Data\AddressInterface">
1313
<attribute code="discounts" type="Magento\SalesRule\Api\Data\RuleDiscountInterface[]" />
1414
</extension_attributes>
15-
</config>
15+
<extension_attributes for="Magento\Catalog\Api\Data\ProductInterface">
16+
<attribute code="discounts" type="Magento\SalesRule\Api\Data\RuleDiscountInterface[]" />
17+
</extension_attributes>
18+
</config>

0 commit comments

Comments
 (0)