Changing the Store ID on an Order in Magento

Published by John on October 25, 2018

If you have ever had to change an Order in Magento 1.X, you know it isn’t a straightforward process. By default, if you ‘edit’ the order, it actually cancels the existing order and then recreates it. Also, once an order has shipped or a credit memo has been created, I think you can’t even do […]

Read More  |  Add Comment

Magento: Adding a Log Entry When a Product is Deleted

Published by John on October 16, 2018

In an effort to add some accountability to the product deletion process in Magento, one of my clients asked me to help add some logging whenever a product gets deleted. While you can often piece together what happened via your server logs, this doesn’t work as well when you have multiple users and if you have a lot of products, it can be hard to figure out what actually got deleted without going back to check a database backup.

This post describes hooking into the catalog_product_delete_after and using an Observer to write a log entry whenever a product is deleted in Magento.

Read More  |  Add Comment

Programmatically Created Magento Accounts Unable to Login

Published by John on August 23, 2018

A client that uses a third-party login/register popup on their Magento site recently reached out to me because users were not able to register on their website.

The initial issue was unrelated to the plugin they were using and was instead related to a change made to fix the URLs of their store and make them more search engine friendly.

However, after fixing this, users were still unable to login and I determined the issue was related to some of the recent Magento security updates, which made changes to sessions, customers, and logins, that were not compatible with the way the customer account was being created.

Read More  |  Add Comment

Prevent Gravity Forms Field from Being Saved in Database

Published by John on August 13, 2018

I have a client that wanted to convert an old PDF form to an online form, so people could have the option of completing the form online, rather than printing or otherwise filling out the PDF form and emailing/faxing it.

They were using gravity forms for the form, however there were a couple gravity form fields that they didn’t want saved in the database. I came up with this solution to prevent an individual Gravity Forms Entry Field from being saved in the Wordpress database, while ensuring that they still received it in their email notification.

Read More  |  Add Comment

Optimizing WordPress’s Full Size Images

Published by John on August 10, 2018

A real estate company that I provide some website support for contacted me recently in an effort to optimize their site. They show their current home listings on the site and many had huge images, some as big as 30 MB of total images per page, and wanted to optimize the images.

However, by default Wordpress does not create thumbnail images when the image is smaller than the thumbnail size, so when they were uploading images, they were not getting saved at reduced quality. The client also wanted to keep a copy of the full size image, so I came up with a relatively easy way of crunching the images to reduce size, which still retaining the original, allowing them to use it in Marketing promotions later on.

Read More  |  Add Comment

Next Page »