Posted on

WooCommerce: Change Product Permalinks @ Shop / Loop Pages

A BloomerArmada fan asked me a very interesting question: how can I link each product in the shop page to its own custom landing page as opposed to the default permalink?

Of course this applies when you don’t want to use the default single product page for all or some products. Clearly, you could set up a 301 redirect from the single product page to the landing page – that will help for SEO as well. But if this is temporary, or you need to still give access to the single product page later on, then a redirect is no good.

So, here’s how you can override the default permalink. Continue reading WooCommerce: Change Product Permalinks @ Shop / Loop Pages

Posted on

WooCommerce: Remove, Rename, Add “Default Sorting” Options @ Shop

We’ve seen in the past how to completely remove the “Default Sorting” dropdown that shows in the WooCommerce Shop, Category and Product Archive pages.

Sometimes, however, you might just need to remove one of the default options, rename a sorting option accordingly to your needs or even add a brand new sorting method. As usual, a few lines of PHP are sufficient to achieve anything, thanks to WooCommerce hooks and filters. Continue reading WooCommerce: Remove, Rename, Add “Default Sorting” Options @ Shop

Posted on

WooCommerce: Detect if Current Category Page is a Subcategory

A client of mine had to style a WooCommerce product category page but ONLY if it was a subcategory. So I decided to add a “subcategory” class to the HTML body, so that they could target this in their custom CSS.

As usual, the PHP is quite easy: I check if the current page is a product category, then if the category has “parents” and only in this case add a body class. Pretty easy! Continue reading WooCommerce: Detect if Current Category Page is a Subcategory

Posted on

WooCommerce: Display All Products in a Table / List

Interesting, isn’t it? This has been on my to-write list for ages, so today I want to show you my first attempt at turning the Shop page into a list/table of products.

Let’s see how I did this – I will try to comment my PHP as much as possible so you can understand my strategy. Continue reading WooCommerce: Display All Products in a Table / List

Posted on

WooCommerce: Display Variations’ Name & Stock @ Shop Page

Thanks to the various requests I get from Business Bloomer fans, this week I’m going to show you a simple PHP snippet to echo the variations’ name and stock quantity on the shop, categories and loop pages. Continue reading WooCommerce: Display Variations’ Name & Stock @ Shop Page

Posted on

WooCommerce: Display % Discount @ Shop & Loop Pages

Default WooCommerce shows a “Sale” badge if the item is on sale – but what about showing the exact sale percentage as well?

I implemented this for one of my freelance clients so here you go with the easy-peasy solution! Continue reading WooCommerce: Display % Discount @ Shop & Loop Pages

Posted on

WooCommerce: Display Stock Quantity on Shop Page

In this tutorial, my goal is to show the “stock quantity” under each product in the shop, category and archive pages (wherever there is a loop). Enjoy, and feel free to leave a comment for any support request ๐Ÿ™‚ Continue reading WooCommerce: Display Stock Quantity on Shop Page

Posted on

WooCommerce: Show Product Subcategories @ Shop Page

A client of mine has a category called “Brand”. Each product is assigned to a specific Brand subcategory e.g. Nike, Adidas, etc. The goal of this task was to show the “Brand” subcategories in the shop/category/loop pages as a way to help the user identify the brand name. Continue reading WooCommerce: Show Product Subcategories @ Shop Page

Posted on

WooCommerce: Remove SALE! Badge Everywhere

Here’s yet another WooCommerce simple PHP snippet if you wish to completely remove / hide the SALE! badges on the homepage, shop page, category pages and single product pages. Once again, wit a few lines of code you can achieve anything you want! Continue reading WooCommerce: Remove SALE! Badge Everywhere

Posted on

WooCommerce: Show “Sold Out” on Archive/Product Page

Another simple snippet that can easily help user experience and make sure the sold out badge shows on every product in the category & shop page. Not all themes allow this so you can use the snippet below to make it happen! Continue reading WooCommerce: Show “Sold Out” on Archive/Product Page

Posted on

WooCommerce: Hide a Category from [product_categories] Shortcode

Sometimes solutions are very simple, and you don’t need rocket science to fix your issue! A client of mine needed to hide a category from the Product Categories Shortcode ([ product_categories]). A rare issue, but once again a quick fix! Here’s how you do it. Continue reading WooCommerce: Hide a Category from

Shortcode

Posted on

WooCommerce: How to Remove the “Default Sorting” Dropdown

If the WooCommerce product sorting functionality (“Default Sorting” dropdown) is a waste of space or you don’t need that select box at all, you may want to remove it.

This PHP solution is simply cleaner than CSS – and no matter if you code or not, you just need to copy/paste my snippet in your theme’s functions.php. Continue reading WooCommerce: How to Remove the “Default Sorting” Dropdown

Posted on

WooCommerce: Remove the Category Counters

Here’s how to remove those annoying “yellow” product category counters in the WooCommerce shop / category / loop pages. You will find several versions of this snippet all over the internet…. but in case you haven’t found it yet, here’s the simple PHP code you need to add to your functions.php file. Continue reading WooCommerce: Remove the Category Counters

Posted on

WooCommerce: Disable Variable Product Price Range $$$-$$$

You may want to disable the variable product price range which usually looks like $100-$999. With this snippet you will be able to hide the highest price, plus add a “From: ” in front of the minimum price. All you need is pasting the following code in your child theme’s functions.php ๐Ÿ™‚ Continue reading WooCommerce: Disable Variable Product Price Range $$$-$$$