Remove WooCommerce payment method

There is a php condition to add when you want to remove a payment gateway from your checkout page based on the selected shipping country. The code below show you how to remove the Cash on Delivery method for countries different from Italy. This is an example very common for these kind of orders. The […]

Read more »

Sorting WooCommerce products by category

When you a have a shop with a lot of products and categories and you need to order products for each category you will see it’s not possible by default in WooCommerce. One easy way to to sort your products is using a free plugin available on the WordPress official repository. That plugin is Custom […]

Read more »

Show WooCommerce product attributes

One thing that can be usefull when you need to modify a WooCommerce single product template page is a trick to display the attributes. Remember that to call a custom taxonomy you have to put the prefix of ‘pa_’ before the assigned name. The page where we are acting is woocommerce/content-single-product.php but it can be […]

Read more »