SkyVerge WooCommerce Extensions

Automate WooCommerce Member Coupons with AutomateWoo

One question we’ve gotten a lot is how to give members or subscribers a periodic discount for products on your site, which is no easy feat to accomplish. Sites with subscriptions or memberships that entitle members to a set number of free or discounted products each month have difficulty creating this kind of system. WooCommerce Memberships can let you create “Member Discounts”, which essentially give your members a members-only price on your products. However, these…

Read More

SkyVerge WooCommerce Extensions

How to Export WooCommerce Refunded Orders

When we discussed how to get all WooCommerce orders with a refund, we talked about why the “refunded” status isn’t a great way of tracking orders with a refund, as a partially-refunded order will not have that status. We put together a helper function to directly query refunds and return the associated order IDs for them. Now let’s talk about a good use-case for that helper: exporting refunded orders. This tutorial requires intermediate PHP and…

Read More

Ask SkyVerge

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 below the product description: We…

Read More

SkyVerge WooCommerce Extensions

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 record is the only way…

Read More

SkyVerge WooCommerce Extensions

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 plans that restrict a product,…

Read More

WordPress development tutorials

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. However, we’ve run into any…

Read More

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 they’d tried first: Get all…

Read More

Disable Repeat WooCommerce Purchases for a Product Category

We previously wrote up a tutorial on preventing repeat purchases for a particular WooCommerce product, or for any product in your store. However, based on the comments there, some merchants wanted to disable repeat WooCommerce purchases for a set of products, but not all products. In order to do so, you could use a product category to check whether repeat purchases should be allowed or not. This would let you group all products that shouldn’t…

Read More

Ask SkyVerge

Hide WooCommerce Product Reviews Until Purchase

We’ve got an Ask SkyVerge questions queued up for today from Sam: Is there a way to display the WooCommerce review tab only for customers who bought the product? That way users who never bought the product will not be able to see the review tab. Product reviews are one of the most important indicators of social proof for an eCommerce site, and they’re an excellent tool to help customers make purchasing decisions and learn…

Read More