Blog – Page 2

How to Centralize Media Across WordPress Sites

When you manage multiple WordPress sites, and these sites have some shared content, you may be wondering if there is a way to prevent duplicating the same media files.

I mean, why copy an image from “Site 1” to “Site 2” when we can use it on “Site 2” by its direct URL from “Site 1”?

In this article, I am going to uncover different scenarios and how we can achieve the goal of having a centralized media library across WordPress sites, for example, when your sites are a part of a WP Multisite network, or when you’re using standalone sites.

Needless to say, all the methods described here work great for WooCommerce stores.

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:

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.

How to Disable a Plugin for One Site in Multisite

In this tutorial, I will dive into how you can disable a network activated plugin for one specific site within your WordPress Multisite Network.

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.

Easy Ways to Migrate Posts from One Site to Another

In this article, I want to show you how to transfer multiple WordPress posts between sites (and you can choose manually which posts).

More than that, I want it to be almost a one-click solution, something like this:

Migrate specific posts from one WordPress site to another
You can select specific posts and sync them to selected sites as well.

What you can see in the screenshot above:

  • You can connect target sites only once and then migrate posts there at any time.
  • You can select only specific posts and pages if you need, or select all of them.
  • If a post has already been transferred from “Site A” to “Site B”, then you can sync the changes made in the original version of the post at any time as well.

Seems quite convenient, doesn’t it?

Of course, there are tons of export and import plugins that are available to you; however, doing it using the export-import method is too much trouble, in my opinion. It may only do the trick during the initial migration of all posts.

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”?