How to override arguments in layout file?

module-sales/view/frontend/layout/sales_order_view.xml <referenceContainer name=”content”> <block class=”Magento\Sales\Block\Order\View” name=”order.comments” template=”Magento_Sales::order/order_comments.phtml” before=”sales.order.info.links”/> <block class=”Magento\Sales\Block\Order\View” name=”sales.order.view” cacheable=”false” after=”sales.order.info.links”> <block class=”Magento\Sales\Block\Order\Items” name=”order_items” template=”Magento_Sales::order/items.phtml”> <block class=”Magento\Framework\View\Element\RendererList” name=”sales.order.items.renderers” as=”renderer.list”/> <block class=”Magento\Theme\Block\Html\Pager” name=”sales_order_item_pager”/> <block class=”Magento\Sales\Block\Order\Totals” name=”order_totals” template=”Magento_Sales::order/totals.phtml”> <arguments> <argument name=”label_properties” xsi:type=”string”>colspan=”4″ class=”mark”</argument> <argument name=”value_properties” xsi:type=”string”>class=”amount”</argument> </arguments> <block class=”Magento\Tax\Block\Sales\Order\Tax” name=”tax” template=”Magento_Tax::order/tax.phtml”/> </block> </block> </block> <block class=”Magento\Sales\Block\Order\Info” as=”info” name=”sales.order.info” after=”sales.order.view”/> </referenceContainer> I want to change only…

How can i change the action of the Save Button in AdminHtml?

In the Save.php file in magento Catalog the Button is defined like this: ‘label’ => __(‘Save’), ‘class’ => ‘save primary’, ‘data_attribute’ => [ ‘mage-init’ => [ ‘buttonAdapter’ => [ ‘actions’ => [ [ ‘targetName’ => ‘product_form.product_form’, ‘actionName’ => ‘save’, ‘params’ => [ false ] ] ] ] ] ], At first i thought that action…

Magento 2 – Outsource script from cms page to theme

I am using a script in my CMS site e.g. <p>some text</p> <script> some logic </script> How can I outsource it to my theme? I created the script in app/design/frontend/mytheme/base/web/js/pages/home.js and tried to change my CMS site like this: <p>some text</p> <script src=”/pages/home.js”></script> But I get “404 not found” if I try to load www.example.com/pages/home.js

Magento 2 – How to create attribute with images on product page

I want to recreate this in magento 2: It’s an image slider with attribute icons. I currently have it in magento 1 as a multiple select value: This is the Magento 1 code: <?php if ($multiSelectArray = $this->getProduct ()->getAttributeText(‘care_instructions’)) : ?> <div class=”main-container col1-layout guides-wrap”> <div class=”main”> <div class=”col-main”> <div id=”care-instructions”> <?php if (is_string($multiSelectArray)) {…