All posts tagged: magento how to

How To Fix Deadlock Error When Reindexing All In Magento 2?

No comments

PROBLEM: Magento Version: 2.1.9 Mode: Production Indexing Mode: Update on save Total Products: 18k Total Customers: 54k Total Orders: 18k After the developer tried to re-indexing, the exception.log file was generated including the following error in this file. Meanwhile, the server was stuck and needed restarting. Then, the site can run as usual. “PDOException: SQLSTATE[40001]:

CharlieHow To Fix Deadlock Error When Reindexing All In Magento 2?
read more

How To Protect Original Product Images In Magento 2?

1 comment

PROBLEM: The developer enables the watermark function of Magento 2, but the original product images are still accessible from URL without the watermark. For example: Cached image URL with the watermark: /pub/media/catalog/product/cache/df484df48ez74849c15sd4f7780/f/f/dsf-8f48d4f.jpg The original image URL without the watermark: /pub/media/catalog/product/f/f/dsf-8f48d4f.jpg Therefore, if someone who removes /cache/df484df48ez74849c15sd4f7780/ from URL can still access to the original photo without

April LeeHow To Protect Original Product Images In Magento 2?
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