I override vendor sale module template file Module-sales/view/adminhtml/templates/order/create/sidebar/items.phtml in custom module with directory name Vendorname/Companyname/view/adminhtml/layout/sales_order_create_index.xml to show a button in admin section of the sales order. Here is the code of the XML file where I defined the template file path

  <referenceBlock name="cart">
            <action method="setTemplate">
                <argument name="template" translate="true" xsi:type="string">Vendorname_Companyname::order/create/sidebar/items.phtml</argument>

But I am facing the issue to show the button directly to visit the customer section.

If I tried to hard refresh the page then a button shows that I defined inside the template file.

Can you please tell how can I shows the button directly without hard refresh the page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.