You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The applepay block and template that are used on the productpage ads window.checkoutconfig and fills it with custom config without loading the entire checkoutconfig.
This interferes with other modules that check and rely on window.checkoutconfig (such ass Swissup Firecheckout) and can lead to JS errors that break the page.
this can not be prevented by turning off applepay, because the script is loaded even if applepay is turned off (which a simple check could prevent)
The text was updated successfully, but these errors were encountered:
Latest version (1.23.2) is also giving me problems on the product page.
Apple Pay template is always loaded, which loads applepay/pay.js that in the end is loading Magento_Checkout/js/model/totals.js.
In Magento_Checkout/js/model/totals.js it throws an error: Uncaught TypeError: Cannot read property 'items' of undefined totals.js:16
because quote.totals().items doesn't exist in this context
For know removing the Apple Pay template from the catalog_product_view.xml is resolving the problem: <referenceBlock name="buckaroo_magento2.product.info.applepay" remove="true" />
For a structural solution the error should be solved and if Apple Pay is not used by the merchant the template and JavaScript should't be loaded in the first place.
The applepay block and template that are used on the productpage ads window.checkoutconfig and fills it with custom config without loading the entire checkoutconfig.
This interferes with other modules that check and rely on window.checkoutconfig (such ass Swissup Firecheckout) and can lead to JS errors that break the page.
this can not be prevented by turning off applepay, because the script is loaded even if applepay is turned off (which a simple check could prevent)
The text was updated successfully, but these errors were encountered: