WooCommerce – Page 2

WooCommerce Cart Fragments

In this guide, I would like to talk about cart fragments in WooCommerce.

Knowing what they are and how to use them could be quite handy when working with WooCommerce themes, especially when you create a custom theme for WooCommerce.

Restrict Shipping by Postcode in WooCommerce

In this tutorial, I will show you three methods of how you can configure ZIP/postcode-based shipping in WordPress (or, to be more specific, in your WooCommerce store).

  • The first way involves creating a custom shipping zone.
  • The second way allows you to leave your WooCommerce store shipping settings untouched, but at the same time to enable or disable specific shipping methods by a postcode(s) with the help of a custom plugin.
  • The third approach will be a programmatic one.

Now, let’s dive into it.

How to Filter Variations by Attributes When Editing Products

Sometimes, when you have a lot of variations on your WooCommerce stores, navigating through them can be quite overwhelming.

For example, if you have 3 variation attributes with 10 values each, then you might have 3 * 3 * 10 = 90 variations! So, some of my clients do complain that the default WooCommerce variation interface is not very convenient in this specific case.

Can we do something about it?

In this tutorial, I will show you one of the ways to deal with it – and we will create a variation filter by attributes (an AJAX one).

Filter variations by attributes in WooCommerce admin

How to Create Shared WooCommerce Attribute Stock

In this lesson, I would like to discuss how you can set up the WooCommerce attribute stock on your store. For example, you have multiple products with the color “blue” on your WooCommerce store. How to make all those products have the same stock?

Of course, there are multiple ways of achieving that.

For example, you can use the same SKU for these products with my Duplicate SKU Stock Sync plugin (don’t worry that by default, WooCommerce doesn’t allow duplicate SKUs, because my plugin allows you to use that). But in this particular tutorial, we will talk about using another way, specifically, the attribute stock.

Central Stock for WooCommerce

In this tutorial, I will show you how to configure central stock for WooCommerce using a plugin, but we will also take a look at the programmatic approach.

How to Disable Shipping Methods for Certain Products

Below, I will show you how to configure different shipping methods for different products in WooCommerce, so we can enable or disable a specific shipping method when a certain product is in the customer’s cart (or in a specific order).

We will dive into both programmatic and plugin approaches; more than that, I will show you how to do it not only for specific products, but also for products with a specific shipping class.

Auto-Select a Variation Based on the Current Attribute

Ok, I guess, a picture is worth a thousand words, so please take a look at the screenshot below, of what I am going to explain to you in this tutorial.

Auto-select a variation based on the current attribute
It is an example of an attribute archive page in WooCommerce, where variations are displayed (how to display them here), and not only that – the appropriate variation based on the current attribute is automatically selected.