What is codePool?

Code pool is a concept to pull the code in Magento structured format. It is specified when you register new module in app/etc/modules/Company_Module.xml There are 3 codePools in Magento: core, community and local, which reside at app/code/ directory. CodePools: _community: It is generally used by 3rd party extensions. _core: It is used by Magento core team. _local: Local… Continue reading What is codePool?

Undefined array key “frontend” Issue

Got error ‘PHP message: PHP Warning: Undefined array key “frontend” in /home/977869.cloudwaysapps.com/syqfgmwgpb/public_html/vendor/magento/framework/App/Cache/Frontend/Pool.php Screenshot: Solution: ‘cache’ => [ ‘frontend’ => [ ‘default’ => [ ‘id_prefix’ => ’91c_’ ], ‘page_cache’ => [ ‘id_prefix’ => ’91c_’ ] ], ‘allow_parallel_generation’ => false ],

Gpay plugin for Magento 2

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

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?

Published
Categorized as Magento Tagged

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

Published
Categorized as Magento Tagged

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?