Skip to content

xml

Auto Added by WPeMatico

Tie dynamic fields from custom phtml block to Product Edit Save request

I have created a custom block on my Product Edit admin page by adding this to product_form.xml: <fieldset name=”my_custom_fields”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”label” xsi:type=”string” translate=”true”>My Custom Fields</item> <item name=”sortOrder” xsi:type=”number”>30</item> <item name=”collapsible” xsi:type=”boolean”>true</item> <item name=”opened” xsi:type=”boolean”>false</item>… Read More »Tie dynamic fields from custom phtml block to Product Edit Save request

Updating cms_page_view but not cms_index_index htmlClass

Trying to update all cms_page_view pages except for cms_index_index layouts. E.g. on Magento_Theme/page_layout/cms_page_view.xml <referenceContainer name=”columns” htmlClass=”columns bluey” /> But I want to remove it on any cms_index_index page. e.g. Magento/layout/cms_index_index.xml <referenceContainer name=”columns” htmlClass=”columns” /> However the div will display class=’columns… Read More »Updating cms_page_view but not cms_index_index htmlClass

xml update with current category variable

How can I insert “currentcategory” variable instead of 504 in category_ids ? ยดยดยด <referenceContainer name=”content”> <block name=”BabygearCategorysliderBlockProductSlider” template=”Magento_Catalog::product/slider/product-slider.phtml”> <arguments> <argument name=”category_ids” xsi:type=”string”>504</argument> <argument name=”title” xsi:type=”string” translate=”true”>Our favorites in Red</argument> <argument name=”sort_attribute” xsi:type=”string”>default</argument> <argument name=”sort_direction” xsi:type=”string”>DESC</argument> <argument name=”hide_rating_summary” xsi:type=”boolean”>true</argument> <argument name=”hide_details”… Read More »xml update with current category variable

How to change the magento2 layout to all options in the personal area?

is there a faster way to change the layout from 2columns-left to 3columns to all the personal area pages (account, wishlist, orders etc..) ? i just got done creating this file: app/design/frontend/Vendor/Vendor/Magento_Customer/layout/customer_account_index.xml and adding this code: <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”… Read More »How to change the magento2 layout to all options in the personal area?