How to Create a Custom Module and To Add A Column To Existing Database Table In Magento 2

Step1: Follow these steps to create a module: Create the module folder. Create the etc/module.xml file. Create the registration.php file. Run the bin/magento setup:upgrade script to install the new module. Check if the module is working. Method To Add A Column To Existing Database Table In Magento 2: Step 1: Create a file called ‘InstallSchema.php’ in the setup folder of the module,… Continue reading How to Create a Custom Module and To Add A Column To Existing Database Table In Magento 2

Published
Categorized as Magento

How to disable product image preview in fullscreen when clicking in Magento 2

How to disable product image preview in fullscreen when clicking in Magento 2. If we want to disable the image moving to full-screen function. I tried to change this code in view.xml . Clear Cache to see changes, php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f

Published
Categorized as Magento

Remove the bestseller products in Magento

The bestseller products are saved on the basis of yearly, monthly, or daily basis. So if we would need to remove those products, then we could remove it from the tables.The best-seller tables are sales_bestsellers_aggregated_yearlysales_bestsellers_aggregated_monthlysales_bestsellers_aggregated_daily By truncating of these tables we could remove the best seller products

Published
Categorized as Magento

Calling admin Panel product placeholder image to frontend.

Here we can take the object manager to get the backend placeholder url of the image. It can be done with block or $objectmanager within the phtml file. For getting the Repositories we need to add some code to pull it to our phtml file. For calling $imageHelper Lib for all repositories we can use… Continue reading Calling admin Panel product placeholder image to frontend.