After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto. Any ideas?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityAfter upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot).
I am using Porto. Any ideas?
In
app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/gallery.phtml
replace
"arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
"showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>,
with:
"arrows": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>",
"showCaption": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption"); ?>",
I found the solution by renaming the following file:
app/design/frontend/mytheme/Magento_Catalog/templates/product/view/gallery.phtml
to
app/design/frontend/mytheme/Magento_Catalog/templates/product/view/_gallery.phtml
After that run all magento commands. Hope this helps