Converting Serialized Objects to JSON Objects

Published by John on December 18, 2018

While helping a client with a Magento migration from Magento 1.X to Magento 2.X, it was necessary to convert some serialied objects over to json objects. While there is a data migration tool available for Magento 2, due to some technical reasons it wasn’t possible to convert this data over using the Magento 2 data migration tool, so I wrote this PHP script to convert the data over.

In the past, I have written about how to convert values in the wordpress database from serialized objects to JSON objects, but that used some of Wordpress’s functions to process the data and update the database.

This post describes a similar process, but is more generic and should work outside of Wordpress.

Read More  |  Add Comment

Magento: Fixing Bug in Freelunch Labs Mailgun Search

Published by John on December 17, 2018

One of my web design clients ran into an issue on their Magento site recently when logged into the admin section and searching their mailgun transactional email log. After a little digging I found that there was an issue in the plugin they were using, Freelunclabs Mailgun integration.

I believe this issue only impacted admins using that search and so added a quick update to fix the search grid in the Magento extension.

Read More  |  Add Comment

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

« Previous PageNext Page »