Uncheck default “Ship to different address” on woocommerce checkout using functions.php
“Ship to different address” is the default setting on woocommerce checkout. There has been much discussion about why this is or is not a good idea. See this thread https://github.com/woocommerce/woocommerce/issues/2571 As we all know, in the end though the client rules, and this is what my client had to say. The “ship to a different […]
get_dimensions() for displaying dimensions deprecated in woocommerce 3
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
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
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
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
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
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
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
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
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 […]