Magento Tutorials

Magento SUPEE-10975 Comprehensive Installation Guide

No comments

On November 28, 2018, Magento released the SUPEE-10975, which brings about a lot of functional fixes as well as security improvements. The major purpose of this patch is to handle the cross-site scripting (XSS), remote code execution (RCE), cross-site request forgery (CSRF) and other threats. How To Install Magento SUPEE-10975? As you might know, there are two popular ways

April LeeMagento SUPEE-10975 Comprehensive Installation Guide
read more

How To Fix The Magento Error: Google Shows Wrong Meta Description?

No comments

One of the common issues for Magento e-commerce websites is wrong meta description shown on Google. In this blog post, we will tell you the causes of this error as well as how to fix it. Causes of Wrong Meta Description Error In general, most of the Magento stores face this error since there is

April LeeHow To Fix The Magento Error: Google Shows Wrong Meta Description?
read more

getAllVisibleItems: How To Show Only Configurable Products & Hide Parent Products?

No comments

PROBLEM: The developer has a custom observer executing after “sales_order_place_after” that compiles a list of purchased items from the order and sends them to a third party. This script worked fine in Magento 1, but when upgrading to Magento 2, it shows both of the configurable product and its parent product being listed. Here is

April LeegetAllVisibleItems: How To Show Only Configurable Products & Hide Parent Products?
read more

[Fix It Series] Magento Error: Missing all sale tables but sale orders are recorded

No comments

PROBLEM: [Magento Error] Most of the tables in database are missing and that includes all of the sales. Moreover, when someone makes an order, it is recorded inside the admin section but there is no record within the database. SOLUTIONS: Using Database Repair Tool: The Database Repair Tool compares 2 databases and updates the target

April Lee[Fix It Series] Magento Error: Missing all sale tables but sale orders are recorded
read more

How To Change Add To Cart Button Text and Relink In Magento?

No comments

TASK: Change Add To Cart button text to “Find Out More” Moreover, when the customers click on the button, it will be redirected to a different URL on the website.   SOLUTIONS:  1st Method: Modifying your code as below and check in the file …template/catalog/product/view/addtocart.phtml Change from: <?php $_product = $this->getProduct(); ?> <?php $buttonTitle =

April LeeHow To Change Add To Cart Button Text and Relink In Magento?
read more

How To Get SKUs From Orders in Magento?

No comments

TASK: Getting all SKUs from orders of the user who is currently logged in in Magento For Example: A user has placed 3 orders. 1st order contains SKUs: 0001, 0002 and 0003 2nd order contains SKUs: 0002 and 0004 3rd order contains SKUs: 0001, 0002 and 0005 How can we get the returned list of

April LeeHow To Get SKUs From Orders in Magento?
read more

How To Format SEO URL With Slashes in Magento?

No comments

TASK: Adding slashes into SEO URL in Magento From: https://www.example.com/products?p=1&attributes=value To: https://www.example.com/products/p/1/attributes/value SOLUTIONS: You can override the getUrl() method in the class Mage_Catalog_Model_Layer_Filter_Item, path /app/code/core/Mage/Catalog/Model/Layer/Filter/Item.php Then, locate the function at the line 57, it will look like this: public function getUrl() { $query = array( $this->getFilter()->getRequestVar()=>$this->getValue(), Mage::getBlockSingleton(‘page/html_pager’)->getPageVarName() => null // exclude current page from urls); return

April LeeHow To Format SEO URL With Slashes in Magento?
read more

[Fix It Series] Magento Error: Custom Option Type Fields Are Not Displayed

No comments

PROBLEM: Working on a module to add a product custom option input type (Derivated from file type). In the back-end, under catalog/product/custom options, the new option is present in the “input type” list but when selecting it, the associated custom option type fields are not displayed (e.g.: price, price type, sky, compatible file extension, etc.). app/code/A/Custoptiontype/etc/module.xml <?xml version=”1.0″

April Lee[Fix It Series] Magento Error: Custom Option Type Fields Are Not Displayed
read more