In order to enable the magnifier widget in Magento 2 theme, you have to go into the view.xml in your local theme configuration file and then enable the Magnifier widget. Now you have to change content like the below code. Now the view.xml file will have the content Output
Author: Mukil Mukesh M K
How to Create Custom Payment Method in Magento 2?
There are following files will have to create:- 1 – Create Test/Testpayment/registration.php for register your module. 2- Create Test/Testpayment/etc/module.xml for define module name. 3- Create Test/Testpayment/etc/config.xml for define your payment method. 4- Create Test/Testpayment/etc/adminhtml/system.xml for display payment method in backend. In this file mentioned only one field for enable/disable method.You can add field accordingly your need. 5- Create… Continue reading How to Create Custom Payment Method in Magento 2?
How to create an additional field in the Payment section of the Magento backend?
Added a new payment method by creating a new custom module in the app/code folder and named as Payment. Created files as follows etc->adminhtml and inside that system.xml Code: After this we need to delete the folder in setup module in our database, And after that; php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento s:s:d… Continue reading How to create an additional field in the Payment section of the Magento backend?
How to create an additional field in the customer section of the Magento backend?
Written the below code in the existing module customfield->setup->InstallData.phpCode: After this we need to delete the folder in setup module in our database, And after that; php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento s:s:d -f en_US –theme Swissup/argento-marketplace sudo chmod 777 -R /var/www/html/Szco_Supplies_Magento_Nestuite_website/ After this, it will be as shown in the screenshot below.… Continue reading How to create an additional field in the customer section of the Magento backend?
How to override a block from a vendor to a custom module?
To override a block from a vendor module in Magento, you can follow these general steps: Create a custom module: If you haven’t already, create a custom module in your Magento installation. This module will contain the overridden block and any additional customization you want to apply. Identify the block to override: Determine the block… Continue reading How to override a block from a vendor to a custom module?
imagecolorsforindex(): Argument #2 ($color) is out of range when running bin/magento catalog:images:resize
I basically changed the default image adapter configuration of “Image Processing Settings” in Configuration>Advanced>Developer>Image Processing Settings from PHP GD2 to ImageMagick, and ran catalog:images:resize again after flushing image cache
To move description between a new block and Add to cart button in pdp page.
The input box for the quantity should be reset to 0 after it has been added to the cart.
How to make 1 slide visible when scrolling on mobile devices?
In the above code, the ‘slidesToScroll’ option is set to 1, which means that two slides will be scrolled at a time. The ‘1’ argument after ‘slidesToScroll’ is the same as the one after ‘slidesToShow’, and it specifies the number of slides to be displayed at a time. You can adjust the ‘slidesToScroll’ option to… Continue reading How to make 1 slide visible when scrolling on mobile devices?
What are Up-sell products and Cross-sell products?
Up-selling and cross-selling are both techniques used by businesses to increase their revenue by encouraging customers to purchase additional products or upgrade their existing purchases. Up-selling is the practice of offering a higher-end or more expensive version of a product that the customer is already interested in purchasing. For example, if a customer is interested… Continue reading What are Up-sell products and Cross-sell products?