The Google Pay plugin is built in collaboration with Unbound Commerce, is free to use, and integrates with popular payment service providers including Adyen, BlueSnap, Braintree, FirstData – Payeezy & Ucom, Moneris, Stripe, and Vantiv. Installation The Google Pay plugin can be installed from the Magento Marketplace using this link or by searching the Magento… Continue reading Gpay plugin for Magento 2
Category: Magento
What is EAV Model in Magento 2?
EAV, for those who don’t know, stands for Entity Attribute Value, which a data model used in Magento 2. Entity: it’s responsible for storing data. Attribute: It’s a separate property of an entity like name, gender, email address, etc. Value: It’s basically the value of an entity and attribute. Together, the EAV structure helps to get flexibility for… Continue reading What is EAV Model in Magento 2?
How do I connect to a remote server using SSH in Linux?
To connect to a remote server using SSH in Linux, follow these steps: Open your terminal. Run the SSH command: ssh username@server_ip_or_hostname Replace username with your server’s username and server_ip_or_hostname with the IP address or hostname of the server. For example: ssh root@192.168.1.100 If prompted, enter the password for the specified user.
How to Call a Controller with AJAX in Magento 2: A Step-by-Step Guide
Why Use AJAX in Magento 2? Before we jump into the how-to, let’s talk about the why. AJAX (Asynchronous JavaScript and XML) allows your web pages to communicate with the server without reloading the entire page. This means you can update parts of your Magento 2 site dynamically, providing a smoother and faster user experience.… Continue reading How to Call a Controller with AJAX in Magento 2: A Step-by-Step Guide
How to fix Git Clone “Filename too long” Error in Windows?
There is an option to do as part of the “git clone” command if you wish to fix the error while cloning the repository. Please enable flags to accept using the “-c” option and then pass core.longpaths=true as below. git clone -c core.longpaths=true
create a product in Magento without making it visible on the frontend?
To create a product in Magento without displaying it on the frontend, you can set the product’s visibility attribute to “Not Visible Individually.” Here’s how to do it: Go to the Magento Admin panel. Navigate to Catalog > Products. Click on Add Product to create a new product, or edit an existing one. In the… Continue reading create a product in Magento without making it visible on the frontend?
ObjectManager usage directly
Should not use Object manager directly! For instance: MagentoFrameworkAppObjectManager::getInstance(); also if you are working with event observers or plugins, you should never use it directly. You could use it in Factories, but except that you should inject the Object Manager in the Constructor first then you can use its object in your method Preferred to… Continue reading ObjectManager usage directly
How do you create a custom cron job in Magento 2 and ensure it executes only once per cycle?
Here crontab.xml file <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Cron:etc/crontab.xsd”> <group id=”default”> <job name=”vendor_module_cronjob” instance=”VendorModuleCronCustomJob” method=”execute”> <schedule>* * * * *</schedule> </job> </group> </config> <schedule>0 3 * * *</schedule> 0 – Minute (0th minute, or the beginning of the hour) 3 – Hour (3 AM) * – Day of the month (every day) * – Month (every month) * – Day… Continue reading How do you create a custom cron job in Magento 2 and ensure it executes only once per cycle?
After Upgrade Magento version from 2.3.5 to 2.4.7, an error in the Admin Grid(Custom module) started to appear
In Magento 2.4.x, there were some changes in the constructor signatures and how collections are handled, particularly with UiComponentDataProviderSearchResult used for grids. Steps to Fix the Issue: Step 1: Update the Collection Class Your Collection class extends MagentoFrameworkViewElementUiComponentDataProviderSearchResult, which means that the constructor parameters need to match the updated signature in Magento 2.4.x. Here’s how you can update your Collection class constructor: namespace G4AMainSliderModelResourceModelMainSliderGrid;… Continue reading After Upgrade Magento version from 2.3.5 to 2.4.7, an error in the Admin Grid(Custom module) started to appear
Error “Your session has expired” when click on add to cart in magento 2
when clicking on product’s add to cart then it’s giving me error–> Your session has expired. Solution UPDATE `core_config_data` SET `value` = ‘http://127.0.0.1/zain/accessories/’ WHERE `core_config_data`.`path` = ‘web/unsecure/base_url’; UPDATE `core_config_data` SET `value` = ‘http://127.0.0.1/zain/accessories/’ WHERE `core_config_data`.`path` = ‘web/secure/base_url’; http://127.0.0.1/zain/accessories/ in this write your frontend url (home page url) what you have after that run command in your… Continue reading Error “Your session has expired” when click on add to cart in magento 2