get_dimensions() for displaying dimensions deprecated in woocommerce 3

Posted by on Jun 15, 2017 in Blog, PHP, Woocommerce | No Comments

The code to display product dimensions has changed in woocommerce 3 This is my old code which was in my child themes functions.php file. It displayed the product dimensions next to the label ‘Dimensions:’ on the single product page only if dimensions had been entered in the backend. If no dimensions were entered nothing appeared […]

Add a giftwrap checkbox and instruction field to your child theme woocommerce

Posted by on Dec 31, 2016 in Blog, E-Commerce, Woocommerce | No Comments

Code for a giftwrap checkbox and input field on woocommerce checkout This code will add a checkbox and input field to woocommerce checkout. It will also add it to the orders page in the backend AND the thank you page after checkout PLUS the email the customer receives after ordering. It took me a while […]

Add login and logout to menu for woocommerce

Posted by on Mar 30, 2015 in Blog, E-Commerce, Woocommerce | No Comments

There are a couple of ways you can do this. I like this as it adds the login and logout as 1 menu item, the state of which changes if the user is logged in or not. The code below is from a git, Credit to Kloon. I made a slight update as “woocommerce_get_page_id” is […]

Add the stock status to Woocommerce Shop and Category pages

Posted by on Aug 7, 2014 in Blog, PHP, Themes, Woocommerce | 5 Comments

Woocommerce displays the Stock Status, for example ‘Out of stock’ or ‘6 in stock’ on the single product page. I needed to display the message on the Shop and Category pages. Also my client actually only wanted to display the status when a product was ‘Out of stock’ Thanks to Bryce from Woocommerce for help […]

Add a wrapper div to Woocommerce Single Product page without editing plugin files

Posted by on Apr 28, 2014 in Blog, E-Commerce, Themes, Woocommerce, Wordpress | No Comments

The problem I was re-arranging the items on my themes Woocommerce Single Product page. See the info panel at the end of this post for more on that. I realized that the various sections with description, price, add to cart button etc would flow independently when the browser was resized. This may be desirable in […]

Add, remove, re-order items on Woocommerce single product page

Posted by on Apr 28, 2014 in Blog, E-Commerce, Woocommerce | No Comments

The title says it all. This is not a thorough tutorial. Just some handy code with a very quick explanation. I was working with the free MyStile theme from Woothemes (v1.3.0) and Woocommerce (v2.1.7) on WordPress 3.9. This solution should work for most themes I believe, although I can not guarantee it. Remove Woocommerce items […]

Remove Tabs but keep product description in Woocommerce

Posted by on Apr 28, 2014 in Blog, E-Commerce, Woocommerce | 25 Comments

The problem. A client did not like the Tabs on Woocommerce Single product pages. The ones that include product description, Product specifications if you have entered any and product reviews. That is easy, a single line of code will remove all of the tabs (see below), but she still wanted to display the product description. […]

Remove WooCommerce styles and scripts

Posted by on Apr 20, 2014 in Blog, E-Commerce, Woocommerce | No Comments

This is not a tutorial, more a record of a handy bit of code. You may not want to remove all of this in a real world scenario, although you never know. More likely there will be a particular script and css that you wish to remove as I did in this tutorial on using […]

Use a different Lightbox with Woocommerce

Posted by on Apr 20, 2014 in Blog, E-Commerce, Woocommerce | 10 Comments

At first it seemed it should be pretty easy to change the lightbox used by Woocommerce to display the product images. Well it was not as simple as I thought so I decided to record the solution in a post for others. Why would you want to change the lightbox? Well there are a few […]