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.

Published
Categorized as Magento

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

Published
Categorized as Magento

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.

Published
Categorized as Magento

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

Published
Categorized as Magento