Convert WooCommerce variation dropdowns into radio buttons

I had an eCommerce project where the client wanted to display options for their products as selectable radio buttons rather than the default select dropdowns. To achieve this, we need to write two functions: 1 will grab the selected options for the product, and for each variation available, write them to a radio button input … Continued

Redirect Woocommerce Multisite shop page to another URL

Here’s a snippet to switch a Multisite Woocommerce store from one store shop page to another.  Handy when you point your store Shop page to the main store from a subsite shop page.  You may have done this in the menu, but if you use breadcrumbs then this will still show the current site store … Continued

Removing Related Products from WooCommerce Single Product Page

Related products on a single product page in Woocommerce can be a great way to inform customers of other similar products in yout store. Sometimes however, you may need to remove them and here’s how. Adding this snippet to your functions.php file:

Remove white space from Google Conversion iFrame

I noticed recently that Google’s conversion tracking code, usually found in the footer, has a set height of 13px as an iframe. This creates an annoying white space in your sites footer. When your footer is anything but white, it creates a 13px high gap underneath your footer which looks rather out of line with … Continued

Show product tiered pricing in category list in Magento

A recent client needed to bring the tiered pricing seen on the product page into their category list views. While there is a few approaches in this, the easiest method I found was to add this snippet to the desired location in /default/template/catalog/product/list.phtml

Increase Upload Limit in OpenCart 1.5.x

It’s rather annoying having to tweak the compression of images to get under OpenCarts 300kb limit on images and files. When using PNG files for slides, I’d rather increase the limit than decrease the quality of product images to get them into OpenCart, especially as you cannot simply upload direct into the images folder (due … Continued

Magento: Fixing Cannot add or update a child row: a foreign key constraint fails

I’m currently completing a rather large project for a client. While I regularly make backups before installing any major extensions or conducting core work, yesterday I needed to make my first restore on this particular database. While Magento has a great tool for backups and restores, I always prefer to do it manually from either … Continued