New answers tagged

0

You can find your files here Layout files vendor/magento/module-catalog/View/frontend/layout/ Templates files vendor/magento/module-catalog/View/frontend/templates/ It is not a good practice to do direct edit in magento's core files If you wish to customise it, then you should first create your own module and then you can do your changes in that. If ...


0

Name of the module is defined as VendorName_ModuleName it is necessary to create etc folder and add the module.xml file app/code/VendorName/ModuleName/etc module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module ...


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

Working code: Create a mixin for the default payment method view: app/code/MageWorx/Checkout/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_OfflinePayments/js/view/payment/method-renderer/purchaseorder-method': { 'MageWorx_Checkout/js/view/payment/method-renderer/purchaseorder-method-...


0

This section comes from the Magento_InventoryShippingAdminUi module, specially it is defined in: For new: magento/module-inventory-shipping-admin-ui/view/adminhtml/layout/adminhtml_order_shipment_new.xml For view: magento/module-inventory-shipping-admin-ui/view/adminhtml/layout/adminhtml_order_shipment_view.xml Template is: magento/module-inventory-...


0

What version are you using? By a chance I got the module but I don't see any instructions in the file you mentioned. vendor/Amasty/Promo/view/frontend/layout/default.xml = <?xml version="1.0"?> <!-- /** * @author Amasty Team * @copyright Copyright (c) 2019 Amasty (https://www.amasty.com) * @package Amasty_Promo */ --> <page xmlns:xsi=...


1

You want to use the value KO binding. The value binding links the associated DOM element’s value with a property on your view model. This is typically useful with form elements such as , and . When the user edits the value in the associated form control, it updates the value on your view model. Likewise, when you update the value in your view model, ...


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

you can add your data in below code One approach is to use the registry so in your controller class you put it in the registry, and then in your block you can retrieve it. <?php namespace Vendor\Module\Controller\Index; use Magento\Framework\App\Action\Action; class Index extends Action { protected $_coreRegistry; public function __construct( ...


Top 50 recent answers are included