I have created 2 custom address attributes house name and landmark. From the backend, I can save the values of the attributes and it is shown in the address section. Also I have created fields in the quote_address and sales_order_address tables. But when I use the saved address for the […]
Magento
I am using magento 2.4.2-p1. My site is using Salable quantity functionality. I don’t want to use salable quantity and turn this feature off. I only want to use Default quantity. How can i do that. Please help.
I tried to do form validation for a custom form through class and data-validation but no response from both methods. May I know what is the correct way to do it? app/code/MyModule/Knockout/view/frontend/web/js/custom-component.js define(['jquery', 'uiComponent', 'ko', 'mage/validation'], function ($, Component, ko) { 'use strict'; return Component.extend({ defaults: { template: 'MyModule_Knockout/knockout-test' }, […]
On the backend login page and within the backend itself the following files from https://store.example/static/adminhtml/Magento/backend/en_US/ are not being found (404): jquery.min.js, js/theme.min.js, mage/backend/bootstrap.min.js, mage/adminhtml/globals.min.js, Magento_Catalog/catalog/product.min.js, Magento_Translation/js/mage-translation-dictionary.min.js, underscore.min.js, mage/backend/tabs.min.js, and mage/adminhtml/grid.min.js. The .min.js files do indeed not exist within pub/static/adminhtml, but their .js counterparts do. All static files in the frontend […]
is there any way to reload the payment Methods when change Address field. for example if the customer change the Region i want the payment methods to reloaded. as we want to make COD not working in Alaska. “Hide COD when select Alaska”.
I upgraded from Magento 2.3.4 to 2.4.3-p3. But I cannot see products and categories. here is composer.json { "name": "magento/project-community-edition", "description": "eCommerce Platform for Growth (Community Edition)", "type": "project", "license": [ "OSL-3.0", "AFL-3.0" ], "config": { "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "magento/magento-composer-installer": true, "magento/inventory-composer-installer": true, "dealerdirect/phpcodesniffer-composer-installer": true, "laminas/laminas-dependency-plugin": true, […]
I would like to change the variable – $validate to false from before the plugin. May I know how to do it? app/code/MyModule/ReviewCheck/Plugin/ReviewModel.php <?php namespace MyModuleReviewCheckPlugin; use MagentoFrameworkMessageManagerInterface as MessageManagerInterface; class ReviewModel { protected $messageManager; protected $request; public function __construct( MessageManagerInterface $messageManager, MagentoFrameworkAppRequestHttp $request ) { $this->messageManager=$messageManager; $this->request=$request; } public […]
I have 2 columns in xml with js component, but i want display each column if condition is true, so if precio_anterior is not empty and value is different to 0 show precio_anterior column if not, show precio_suscriptor: This is my code: /app/code/Vendor/Catalog/view/frontend/ui_component/widget_recently_viewed.xml <column name="precio_suscriptor" component="Vendor_Catalog/js/product/precio_suscriptor" sortOrder="3" displayArea="details-area"> <settings> <label […]
In Magento 2 di.xml we can inject an array to a class like this: <type name="VendorModuleModelFoo"> <arguments> <argument name="data" xsi:type="array"> <item name="item1" xsi:type="string">Item 1</item> <item name="item2" xsi:type="string">Item 2</item> </argument> <arguments> </type> How can we inject the same data array to another class VendorModuleModelBar without duplicating it like this? <type name="VendorModuleModelBar"> […]