A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

update layout file path:app/code/VendorName/ModuleName/view/frontend/templates/salesperson_login_index.phtml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <referenceContainer name="content"> ...


0

First you have to craete admin Route file app/code/VendorName/ModuleName/etc/adminhtml routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> <router id="admin"> <route id="[route_name]" frontName="[route_name]...


0

You should Try <?xml version="1.0" ?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="Vendor_ModuleName::css/style.css"/> </head> <body> <attribute name="class"...


1

This is not possible in core Magento 2, the container node only supports these attributes: name label before after as output htmlTag htmlId htmlClass You would need to load a template inside that container and add your attribute there.


0

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="order_totals"> <arguments> <argument name="label_properties" xsi:type="string">colspan="7" class="mark"</argument> ...


0

Try add second argument, i mean <argument name="value_properties" xsi:type="string">class="amount"</argument> so it should look like <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> ...


0

The issue is with core Magento. I have created an issue on the official GitHub repository.


0

Just Follow Below Step :- rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code php/bin magento s:up php bin/magento setup:static-content:deploy -f php bin/magento cache:flush After Below Step ...


0

Please Add css in your layout as per below: <?xml version="1.0"?> <page xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="VendorName_ModuleName::css/custom.css" /> </head> Now put your css in below ...


1

*Make sure your layout file is correct way, otherwise not works! Please try below code <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <!-- Here I have tried both methods but no one ...


0

Instead of this file pakke_trackshipment_info.xml you can create default.xml on view/frontend/layout/ so full path app/code/VendorName/ModuleName/view/frontend/layout/default.xml code will be <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration....


0

Override sales_order_print.xml file to your theme - app/design/frontend/[Vendore]/[Theme]/Magento_Sales/layout/sales_order_print.xml Update sales_order_print.xml file based on below code <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...


0

You may create a custom module and override few js file for this customisation as describe below. I assume you custom module name is Company_CodForm. Note: In this COD Form module I created two form field.That are "codfield1" and "codfield2". codfield1 is text input and codfield2 is dropdown. I also write js code (app/code/Company/CodForm/view/frontend/...


Top 50 recent answers are included