app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml
Author: Mukil Mukesh M K
Ajax code to submit given details
How to fix issue related to the calendar
When we click on the calendar first and select some date. After that when we click anywhere on the page the calendar will be opened. To fix, this issue we need to write CSS for the main div of the calendar field.Position: relative; By this, we can fix the issue.
Getting Base URL Inside KnockoutJS .html File
This will redirect to the checkout page by opening a new tab. This will redirect to the checkout page without opening a new tab. Other examples:-
addFieldToFilter condition
There are many conditions you can use with addFieldToFilter. Examples of conditions are equal, not equal, like, not like, in, not in, null, not null, greater than, less than, greater than equal to, and less than equal to. Equal: eq Now we use equal to filter production collection. Not Equals – neq Now we use… Continue reading addFieldToFilter condition
To filter the value which is not equal to in the invoice of Magento
Set timeout for reloading a page using the script in Magento 2
Adding a new address on the checkout shipping page is not working.
Need to check whether the saveNewAddress function in the shipping.js is proper.In my case, there was an error in JJ/Checkout/Plugin/Block/Layoutprocessor.php
To add a custom tab to user roles
Step 1 : We need to create an acl.xml in the etc folder of <vendorname><module name>.write the following code in the acl.xml file. step 2: Check whether the vendor name is the same as in the menu.xml file. step 3: Flush Magento cache.
Add a new attribute in eav_attribute
Here I need to add a new attribute ‘dealer_name’. So in an existing dealer module added a new folder controller and created a file installData.php we need to delete this(dealer) module in php myadmin and do the following php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f sudo chmod 777 -R /var/www/html/Corp-design/ Then we… Continue reading Add a new attribute in eav_attribute