List of addAttributeToFilter Conditionals In Magento

List of addAttributeToFilter Conditionals In Magento

Filter collections in Magento or Magento 2 using addAttributeToFilter conditionals. addFieldToFilter is adding WHERE condition in Mysql question to get the collection from the database, allowing to filter the collections like product collection, category collection, and many more by custom conditions. Developing is all about if, when and else most of the time! (Developers, don’t get offended 😄) You may have to use conditions like equal, not equal, like, not like, in, not in, null, not null, greater than, less

Continue Reading

How to Add Additional Options in Magento

How to Add Additional Options in Magento

Similar to my solution to add additional options in Magento 2, I have come up with the code for Magento 1 in this post. The Magento 1 store, owing to the limitations of the platform, may require customization to offer excellent features. Hence, the method to add additional options in Magento! We know that making changes in the core functionalities is not a good practice. Therefore follow the below method to custom develop features that allow collecting customer details, implement

Continue Reading

How to Change Admin URL in Magento

How to Change Admin URL in Magento

Given how frequent hacking and data breaches take place in E-commerce websites, it is a challenge for Magento store admin to secure the admin panel. Previously, I had given the methods to change admin URL in Magento 2 stores. However, it is a much-needed process for Magento stores comparatively. Hence, the methods to change admin URL in Magento! The default Magento admin URL is quite predictable and prone to hackers’ attacks. Hence, securing your admin panel is utmost important. Methods to

Continue Reading

How to Programmatically Add Product to Cart in Magento

How to Programmatically Add Product to Cart in Magento

Earlier, I had given the solution to programmatically add product to cart in Magento 2. Have you ever thought to surprise your customers with some discounted or FREE stuff? Hell yeah! You may add products to cart automatically when a customer performs a specific action like store visit, reach a specific subtotal, adds a particular product to cart, etc. Follow the below code to not only programmatically add product to cart in Magento, but also update the mini cart automatically. Use this method

Continue Reading

How to Add Google reCAPTCHA to Magento

How to Add Google reCAPTCHA to Magento

Previously, you read how to add Google reCAPTCHA to Magento 2. Today, I’ve come up with a similar solution for Magento 1. Captcha, i.e., Completely Automated Public Turing test to tell Computers and Humans Apart, is a service by Google that prevents the store from spam and bots. Implementing Google reCAPTCHA v2 helps to identify if a visitor in your site is a human or a bot. As Magento, by default, does not offer a reliable solution for security against

Continue Reading

How to Integrate ShortPixel for Magento Image Optimization

How to Integrate ShortPixel for Magento Image Optimization

Google considers page speed as an important mobile ranking factor. This update leaves no choice for the Magento store merchants than to perform actions to optimize the page speed in every way possible. One of the actions is image compression and optimization. Unfortunately, the default Magento does not offer any functionality for image optimization. Hence, the merchants have to rely on third-party tools such as ShortPixel, Tinyjpg, Google Page Speed Insights, GTMetrix, etc. today, I have come up with a method

Continue Reading

How to Get Order Data From Magento “sales_order_place_after” Event

How to Get Order Data From Magento “sales_order_place_after” Event

Earlier, I had given the solution to get order data from Magento 2 “sales_order_place_after” event. A client with a similar requirement for Magento 1 wanted to use the solution to retrieve the order data and send a payment confirmation SMS to store customers. With a view to sharing the solution with my readers, here’s the stepwise method to get order data from Magento “sales_order_place_after” event Method to Get Order Data From Magento “sales_order_place_after” Event: Place the below event code in

Continue Reading

How to Remove Index.php from URL in Magento

How to Remove Index.php from URL in Magento

From the below two URLs, which one would you consider more readable, SEO-friendly and user-friendly? http://meetanshi.com/index.php/magento-extension OR http://meetanshi.com/magento-extension Shorter, the better. Isn’t it? According to Google, the site’s URL structure should be as simple as possible. Additionally, the URLs with a structured hierarchy are preferred by GoogleBot as it makes the crawling throughout the site easier. However, the default Magento and Magento 2 offers URLs with a lingering “index.php” and it is recommended to remove it. Other benefits of short

Continue Reading

How to Install Magento SUPEE 11155 [With or Without SSH]

How to Install Magento SUPEE 11155 With or Without SSH

Security is of the utmost importance when it comes to Magento store. Owing to this, today Magento released Magento SUPEE 11155  along with the Magento 1.9.4.2 version which provides resolution to multiple critical security issues and functional fixes. These security enhancements help secure your Magento stores from cross-site scripting, arbitrary code execution, and sensitive data disclosure vulnerabilities as well as other security issues. We recommend all the Magento 1.x users to upgrade to the latest Magento 1.9.4.2 or install the patch Magento

Continue Reading