2

I'm not sure you can do that. form_additional_info is a container and they don't have data. As per the docs: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_cont A structure without content that holds other layout elements such as blocks and containers. Your error message is telling you ...


2

For Magento 2.4 you shoud in phtml template use $escaper->escapeHtml(...) instead of $block->escapeHtml(...). Full doc is available here: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/xss-protection.html#output-processing


2

The template file path is associated to the block in layout xml files. So even if you create a new template file(.phtml), you need to override the appropriate layout xml and provide the path of new template file to be used. In your case you have to create two files in new module. 1. app/code/Cpy/Sales/view/adminhtml/templates/order/totals.phtml - updated ...


2

It’s a good question. You can use the debugger in chrome to go step by step in cases like this: The file it goes to when super is called is: Magento_Checkout/js/view/summary/shipping.js How to do: Edit the file and add the line debugger: Open chrome and inspect and go to the page which will trigger the debugger, it will then open like this: You can then ...


2

Now I understand. The script vendor/magento/module-tax/view/frontend/web/js/view/checkout/cart/totals/shipping.js (Script A) is not the script where the method is defined. The template is using the script under the similar path as the template. The template path is: view/frontend/web/template/checkout/summary/shipping.html so the script path is at view/...


2

try replacing <referenceBlock name='order_history'> <arguments> <argument name='template' xsi:type='string'>Cpy_Sales::order/view/history.phtml</argument> </arguments> </referenceBlock> with <referenceBlock name='order_history'> <action method="setTemplate"> <argument ...


1

Try to set template like below code, app/code/Evx/EditOrder/view/adminhtml/layout/mpeditorder_quick_edit.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <...


1

I fixed the issue by this layout override <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <referenceContainer name="header.panel"> <block class="...


1

Try this code : <?php if($block->escapeHtml($label) == 'Card Number' || $block->escapeHtml($label) == 'Card Type') {?>


1

The best approach is that, you can override this into the Magento extension. So when you enable/disable that things, that will work with this extension.


1

The good choice is use custom module if you need add extra customises. Inside new module you can define your own template xhtml for your custom ui_component. Use default magento component or reused with additionals is depends on your requirements Path usually app/code/YourBrand/ModuleName/view/adminhtml/templates/yourtemplatecomponent.xhtml With new ...


1

Since Magento 2.2 ViewModels are the way to go. By using ViewModels you don’t need to extend the block, add constructor with additional dependencies to load parent constructor, etc. You add a ViewModel by adding following layout xml: <referenceBlock name="block.name"> <arguments> <argument name="view_model" xsi:...


1

For 2.4 you can hide this in admin. Admin > Content > Design > Konfiguration > "Select theme" > Footer > "Display Report Bugs Link (Yes/No)"


1

There is a typo in your template path it should be: {{block class="Magento\Framework\View\Element\Template" template="Magento_Theme::html/breadcrumbs.phtml"}} Note: Use forward slash /


1

A simpler way, if you just wanted these tags on the home page, would be to programmatically add these meta tags to your app/design/frontend/<them_vendor>/<theme_dir>/Magento_Theme/layout/cms_index_index.xml file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...


1

For Creating Custom Step: Magento 2: New Checkout step – Shipping Method prices not showing Add Shipping Method Section to newly created Step: Magento 2 How to remove shipping method in checkout page Removing shipping method Section from default shipping step: https://stackoverflow.com/questions/50664015/disable-shipping-methods-in-magento-2#:~:text=...


1

It seems to be pretty simple, The default e-mail template that is sent by Magento is: Customer: vendor/magento/module-sales/view/frontend/email/order_new.html Guest: vendor/magento/module-sales/view/frontend/email/order_new_guest.html You must not edit those files directly on vendor. They can be loaded on admin panel: Marketing > Communications > ...


1

Try the below code. Override file in your theme app/design/frontend/vendor_namespace/theme_name/Magento_Sales/templates/email/items/order/default.phtml using setTemplate method in your sales_email_order_renderers.xml <?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...


1

Try with below way. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Payment\Block\Info"> <plugin name="...


1

You can create below XML file in your custom module here.. app/code/VendorName/ModuleName/view/frontend/layout/sales_email_order_creditmemo_renderers.xml Content for this file.. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/...


1

Inside a custom theme would be the best approach to override this template. LE: In a custom module there are several ways you could try this, check here the instructions from devdocs for Setting the template used by a block.


1

I have checked your code , you have taken wrong referenceBlock. Please use below code in your xml file (sales_email_order_shipment_track.xml) <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance dc" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"&...


1

Magento's translations are a pain and the documentation for them is even worse. Theme translations are global and will affect the string regardless of the module, to translate on a per module basis you need to use a translation package. I'm not sure if this is intentional behaviour or if it's a bug that module based translations don't work in the theme. The ...


1

Your controller could set the data to a session. The page with the form can check for data in that session and set the fields accordingly. After the data was sent correctly, you can unset the session-data. Here is an answer to see, how to set/get session-data with magento: how to set session variables


Only top voted, non community-wiki answers of a minimum length are eligible