All posts in Tutorials

Moving WooCommerce Related Items to a Product Tab

Back in action this week with some tutorials scheduled! First up, we have an Ask SkyVerge question today from Rebecca: You’ve got a great article on how to move product upsells to a widget. But what about moving them to a tab? I’d love your ideas on how to make the tab disappear if there are no upsells. Definitely possible! By default, the upsells are shown on the product page Keep Reading…

WooCommerce Memberships: Add “View Subscription” Action to My Memberships

Here’s a quick question we’d gotten in a support thread: How can I add a link to “Cancel” a membership with it’s subscription to the “My Memberships” table? Unfortunately, adding a link to cancel both a membership + it’s associated subscription isn’t really straight-forward — this is why the “cancel” action is removed in the first place when a memberships is tied to a subscription. This way, cancelling the billing Keep Reading…

Adding WooCommerce Memberships Restriction Notice Merge Tags

We got an interesting question this week from a developer: Is there a way to show Membership Plan Names in a “content restricted” notice instead of products to buy? In this case, the site wasn’t selling Memberships, but rather taking applications for them, so the plan names made more sense. This question can show us a couple interesting concepts today to look at: (1) creating a helper method to get Keep Reading…

Repeating a Fixed Date Membership with WooCommerce Memberships

Howdy and happy new year, folks! The new year partly inspired this Memberships post, as an year cycle ends, and it’s likely that many of you Memberships users might have set up membership plans that are a year long. But how about plans that are set to start exactly on the 1st of January of any given year? Since fixed dates memberships were introduced in version 1.7.0 there is the Keep Reading…

Screen ID checks with WordPress Submenu Pages

Chances are if you’ve read our series on adding plugin settings to WooCommerce, you’re using an existing WooCommerce settings page or new settings tab to add any required configuration options for your plugin. If you have a more complex plugin who’s data will be accessed very often (such as Memberships or Subscriptions), you may even be adding a new submenu with a custom settings or usage page for your plugin. Keep Reading…

Get all WooCommerce Refunded orders

I ran into an interesting problem recently for a consulting project where the client needed to know what orders have had refunds processed in WooCommerce. While helping out with this problem, I found that there isn’t a great way to get all refunded orders at once, only to get refunds for a particular order. There are a couple ways you could approach this issue. Let’s start with the couple methods Keep Reading…

How to Add WooCommerce Custom Order Actions

If you’re building a plugin or internal tools for WooCommerce, it’s helpful to be able to run actions or shortcuts for order records, as this is what much of your day-to-day management is concerned with. Today we’ll look at how to add WooCommerce custom order actions so that you could modify order data, add information to orders, send order data externally, or run any general action that requires order details. Keep Reading…

Importing WooCommerce URL Coupons Data

Last week we released version 2.4.0 of WooCommerce URL Coupons, which adds support for importing coupon URL data. Our URL Coupons documentation has a guide to how importing should work, but we’ll go over it in a bit more detail in this quick tutorial. You’ll need to have both URL Coupons (v2.4.0+) and Customer / Coupon / Order CSV Import (v3.1.0+) installed and activated already. Building the Import File To Keep Reading…