We will show you how to add a new tab to product details page. Here is the code –
Move product title above the thumbnail in WooCommerce product page
In WooCommerce’s product details page, product title always comes after product image section. But each website have their own design and many a cases we have seen that product title needs to be shown at the top. So, how to… Read More
Split cart items by shipping classes in WooCommerce
Assume you need to avail different shipping methods for different items in your store. But if both type items exists in your cart then how to do that ? The first step you have to do is splitting the cart… Read More
Add plugin settings link to WordPress plugins page
If we write some functionality to our website which is not at all dependent on our theme, then it is always better to write those codes to a plugin page(creating new plugin) instead of theme’s functions.php. So if we change… Read More
Pre-populate Woocommerce checkout fields
Pre-populate Woocommerce checkout fields can be done with the following snippent –
Change flat rate shipping price
This article is about how we can change flat rate shipping charge. There are many scenarios like – 1. If a cart having few specified items from some category we need to change flat rate shipping. 2. For a particular… Read More
Show/Hide payment gateways according to shipping method
We often face this issue. Sometimes we want to activate specific payment gateways depending on selected shipping method. Here is the code — Line 2 : We are getting the selected shipping method. Line 4: We are checking whether… Read More