Magento 2: Get image url in template file March 14, 2018 Add image path in public_html/app/design/frontend/theme/web/images <img src="<?php echo $this->getViewFileUrl('img/image.jpg'); ?>" /> Share Get link Facebook X Pinterest Email Other Apps Labels Magento2 Share Get link Facebook X Pinterest Email Other Apps Comments
Magento 2: Category list for custom magento system configuration section ( Backend ) March 21, 2018 In system.xml file field for multi select of category is like: NOTE: Use Select for Single item and multiselect for multiple in - <field id = "bannerlist" translate = "label" type = " multiselect " <group id = "bannerblock_setting" translate = "label" type = "text" delault = "1" sortOrder = "3" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Setting </label> <field id = "bannerlist" translate = "label" type = "multiselect" sortOrder = "10" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Select Category </label> <!-- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>--> <source_model> Ipragmatech\Bannerblock\Model\Config\Source\C... Read more
Magento 2: get custom page template in Page content March 14, 2018 {{block class="Magento\Framework\View\Element\Template" name="test_file" template="Magento_Theme::html/test.phtml"}} Read more
script to change single product add to cart text May 24, 2021 add this in addtocart.phtml page <script> require([ 'jquery', 'mage/mage', 'Magento_Catalog/product/view/validation', 'Magento_Catalog/js/catalog-add-to-cart' ], function ($) { 'use strict'; $('#product_addtocart_form').mage('validation', { radioCheckboxClosest: '.nested', submitHandler: function (form) { var widget = $(form).catalogAddToCart({ bindS... Read more
Comments
Post a Comment