Bypassing (or Upgrading Emogrifier) In Woocommerce

Published by John on February 1, 2019

While developing a custom email template for a client running the Woocommerce E-Commerce shopping cart system on their website, I ran into some issues with styles being automatically inlined and added to the email before it was sent.

After some debugging, I discovered that Woocommerce uses the Emogrifier to inline styles in the email, which was causing some issues.

This post discusses how you can use your own copy of the emogrifer library, in order to change settings or upgrade it to a newer version, without modifying woocommerce code.

I would add the disclaimer that there are some potential problems with this, so whenever possible fixing your template so emogrifier doesn’t break it is probably better.

Read More  |  Add Comment

A Very Knightdale Christmas

Published by John on December 24, 2018

A few weeks ago, we attended the Christmas tree lighting at Knightdale Station Park. It was a fun event and made all the better by the support of the town of Knightdale and a number of local businesses. I look forward to the coming New Year and wish everyone a Merry Christmas!

Read More  |  Add Comment

Creating a Bootable Windows 10 USB on Linux using WoeUSB

Published by John on December 22, 2018

If you have been fixing or working with computers for awhile, you probably remember how much of a pain it could be to find the right installation media for reinstalling Windows. Mainly, because if you had a Dell, HP, or other store bought laptop or desktop, you couldn’t just use any Windows CD, but had […]

Read More  |  Add Comment

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

Next Page »