New answers tagged

0

Found the answer. The height option (for fotorama gallery), even though is added in the documentation, is not being pulled because the variable itself is not being used in GalleryOptions.php. Magento Automatically considers the 'product_page_image_medium' for main image height and 'product_page_image_small' for thumbnail. You can add and update how it is set ...


0

I found the answer here. It provides all the needed steps you do to get the variable values in view.xml https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/themes/theme-images.html#view_xml_vars


0

I found the answer on another post /vendor/theme/magento_catalog/templates/product/view/attribute.phtml $_call = $block->getAtCall(); if($_code == "description") { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $storeCode = ...


0

For better understanding please have a look this view https://github.com/magento/magento2/blob/2.4.0/app/code/Magento/Catalog/etc/view.xml with the following implementation https://github.com/magento/magento2/blob/2.4.0/app/code/Magento/Catalog/Model/Product/Image/ParamsBuilder.php#L173


1

Add a new web_description attribute using admin. Then in your custom theme, in Magento_Catalog/layout/catalog_product_view.xml, add the code below. <referenceBlock name="product.info.description"><arguments><argument name="at_call" xsi:type="string">getWebDescription</argument> <argument name="...


Top 50 recent answers are included