Skip to content

widget

Auto Added by WPeMatico

How to override Magento_CatalogWidget::product/widget/content/grid.phtml widget template in custom Module?

I want to override grid.phtml in custome module without using preference.I have tried this link but it does not work for me. widget.xml <?xml version=”1.0″ encoding=”UTF-8″?> <widgets xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Widget:etc/widget_file.xsd”> <widget id=”products_list”> <parameters> <parameter name=”template” xsi:type=”select”> <options> <option name=”grid” value=”Vendor_Module::product/widget/content/grid.phtml”> <label… Read More »How to override Magento_CatalogWidget::product/widget/content/grid.phtml widget template in custom Module?

Use widget function from an other jquery widget

How can I use a custom widget function in a magento jquery widget? requirejs-config.js var config = { “map”: { “*”: { “customwidget”: “Vendor_Module/js/customwidget”, “Magento_Catalog/js/catalog-add-to-cart”: “Vendor_Module/js/catalog-add-to-cart” } } }; catalog-add-to-cart.js define([ ‘jquery’, ‘mage/translate’, ‘underscore’, ‘Magento_Catalog/js/product/view/product-ids-resolver’, ‘Magento_Catalog/js/product/view/product-info-resolver’, ‘Vendor_Module/js/customwidget’, ‘jquery-ui-modules/widget’ ], function… Read More »Use widget function from an other jquery widget

Render link attribute in custom page builder content type

Lets assume a custom page builder content type with a text attribute representing a link In master.html I’m already retrieving the following attributes <!–master.html–> <<div attr=”data.main.attributes” ko-style=”data.main.style” css=”data.main.css” > <div class=”homebanner-content”> <h3 attr=”data.title.attributes” html=”data.title.html”></h3> <p attr=”data.description.attributes” html=”data.description.html”></p> <a href=” <div… Read More »Render link attribute in custom page builder content type