How To Override a Method of Abstract File of Magento Invoice PDF

How To Override a Method of Abstract File of Magento Invoice PDF

I’ve already given the solution to override abstract file of Magento 2 invoice PDF earlier. Similarly, I have come up with the solution for Magento 1 as I was required to do so as a part of the client’s requirements. We already know the importance of the attractive invoices that speaks for your brand. Adding a brand logo, signatures, etc. helps customers know who you are as a brand. And, it is important to be recognizable in the era of

Continue Reading

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 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 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

[Fixed] Magento Logging Failed After Installing SUPEE 11086 Patch

Moreover, have you faced an issue of Magento logging failed after installing SUPEE 11086 patch? This is because log validation function added by Magento to validate extensions. It throws an error on is_readable() function in the case log file does not exist yet. To solve this problem, check here.

Magento SUPEE 11086 was released on March 26, 2019. The patch is meant to fix issues like close remote code execution (RCE), cross-site scripting (XSS), cross-site request forgery (CSRF) and other vulnerabilities. However, it comes with an issue of Magento Logging Failed After Installing SUPEE 11086 Patch! The problem is caused due to the log validation function added by Magento to validate extensions. It throws an error on is_readable() function in the case log file does not exist yet. Implement the below

Continue Reading