WooCommerce is the most popular ecommerce platform in the world and there is a reason for this – it is highly customizable, easy to use and completely free. While it gives you an awesome standardized solution, which you may use to build a complete online store, sometimes you may want to expand your Wordpress website functionalities and further customize it according to your clients’ needs. In this way, you can make your website stand out from the rest. There are many plugins out there, which you can use to change WooCommerce standard behavior. However, plugins may not always be the best solution, since they are not specifically made for your website and may be bloated with additional or unnecessary functionalities. It is always better to write custom code. In this tutorial, I have prepared a list of the top 12 ready-to-use custom WooCommerce functions that you can use to significantly increase the functionality of your web store to make your website stand out and give you a competitive advantage over the others.

To make use of these functions, you first need to create a child theme. Here is a nice tutorial how to do that in Wordpress: How to Create a WordPress Child Theme (Video). After you have successfully set up your child theme, paste any of the codes below in your child theme’s functions.php. Please, do not copy the opening php tag, it only needs to be included once, at the beginnng of the file.

(Sometimes, you may want to further customize the product tabs. For example, you may want to add custom text for each product. Here is an amazing WordPress plugin that can help you achieve this: Custom Product Tabs for WooCommerce)

4. Reorder Single Product Page Content

Sometimes, you may wish to move a section in your WooCommerce single product page. For example, you may want to move the product data tabs from the bottom of the page to a position just below the image title:

5. Remove Zooming Effect in WooCommerce

<?php
remove_theme_support( 'wc-product-gallery-zoom' );

6. Hide Product Price Range on Single Product Page

Sometimes, when you have product variations, it is a good idea to get rid of the price variations because they do not always add extra value to the customer. Paste this code to your child theme’s functions.php file:

8. Display Image Title on Single Product Page With Variations

Product variation gallery on the single product page is nice but it will be even better to add image captions on the single product page. This can add a great value to your users, because they will be able to differentiate the product not only by its image but also thanks to your custom text. In this way, you can change the product title, when an image from the product gallery is selected
The code takes the image title and prints it below the image on the single product page. You can customize the image title from your media library. Go to Dashboard – media – library and select the image you want to edit. You will see image tabs on the right side of the page. Click on the Image Title field and put your custom text there.
After that, paste the following code in your child theme’s functions.php: