How to Hide a Shipping Method for Product Category
In this guide, you will learn two ways of how you can enable or disable WooCommerce shipping methods depending on products from a specific category in the customer’s cart or an order.
First, I will show you how to easily add conditions with a plugin, and then we will also take a look at a programmatic approach.
Allow Shipping Methods Based on Date and Time
In this article, I will show you different ways to enable or disable WooCommerce shipping methods based on:
- time of day when an order is created,
- day of the week (we can also do it for specific dates or a date range).
Below, I will guide you on how to implement each option both programmatically and using my plugin, Simple Conditional Shipping and Payments.
As a bonus, we will also calculate shipping costs based on date and time.
How to Sync Variations into Simple Products Between Stores
Recently, a client contacted me about my Simple WP Crossposting plugin, and he asked me whether it is possible to not only sync variable products between WooCommerce stores, but also to automatically convert all variations into simple products when syncing to a specific store.
“Of course, it is possible!” – I said.
In this guide, I am going to share with you how I achieved that, and what are the moments you need to keep in mind. I will also show you how to do that for a WordPress Multisite network, i.e., when using my other plugin – Simple Multisite Crossposting.
Setting Up Role-Based Shipping Methods in WooCommerce
In this guide, I will show you how you can enable or disable specific shipping methods depending on a user role in your WordPress site (I mean, WooCommerce store).
But don’t all the customers in WooCommerce have a dedicated role – “Customer”? Well, while it is true, it is not a requirement; customers still can have other WordPress roles, even multiple roles, along with the “Customer” role.
A simple example: let’s say you have a custom role in your store, “Premium customer” or something like that, and your goal is to grant free shipping to all your premium customers.
We will take a look at two approaches – using a plugin and a programmatic approach.
Sounds good? Now, let’s dive into it.
Conditional Payment Methods by Product & Country
This time, I will show you two ways of how to set up (enable or disable) payment methods in your WooCommerce store based on two conditions:
- Condition 1: A specific product in the cart (there is a separate tutorial about this condition),
- Condition 2: A customer’s billing (or shipping) country (here is a separate tutorial as well).
My goal is to show you how to combine both these conditions. For example, what if you want to only allow “Payment gateway A” when selling “Product B” to “Country C”?
How to Configure WooCommerce Shipping Methods by Weight
Recently, I’ve been browsing Reddit and found out that some users assume that weight-based shipping can be configured in WooCommerce itself, using its standard settings.
For better or worse, there is no such functionality in WooCommerce out of the box, so we need to install a plugin for that or code everything from scratch.
Below, in this guide, I will show two different scenarios on how we can use the weight of a customer’s cart to either calculate the shipping or to allow specific shipping methods.
How to Bulk Reset WooCommerce Product Stock Daily
In this tutorial, I’ll show you how to set up an automatic product stock reset in a WooCommerce store. For example, let’s assume that “Product A” has a stock quantity of “10” at the beginning of the day. During the day, it may have some sales, but it doesn’t matter how many sales it had; you want it to have the same stock quantity tomorrow morning.
You may need functionality like this as a part of risk management measures, or maybe you just need to launch only a limited amount of sales of a specific digital product.
Anyway, below we will take a look at two methods on how we can perform an automatic daily (or weekly or whatever) stock reset on your WooCommerce store – we’ll use a programmatic approach, and I will also show how to do it using two stores and a plugin.