SkyVerge WooCommerce Extensions

Add a Lock Icon to WooCommerce Memberships Restricted Posts

We’ve gotten this question a few times, most recently from Jon: Can I add a lock icon before restricted posts? I already use FontAwesome, but I’m not sure how to add / remove the lock depending on whether the customer has access. Definitely do-able 🙂 As Jon has noted though, be sure that FontAwesome is already loaded on your site so the icon can be shown. To add the icon, we’ll filter the_title to adjust…

Read More

SkyVerge WooCommerce Extensions

Adjust WooCommerce Memberships Exports

A popular feature with WooCommerce Memberships is the ability to import and export members. While the default export includes membership data, you may want to include other data here as well. Modifying the export is possible, as there are hooks available to change the CSV output; we’ll go over a couple straight-forward examples in this guide. Please note this guide requires beginner PHP development and WordPress skills. Filter WooCommerce Memberships Export Column Headers The first…

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

SkyVerge WooCommerce Extensions

WooCommerce PDF Product Vouchers – Voucher Custom Fields

Since version 3.0 was released for our WooCommerce PDF Product Vouchers plugin, the addition of custom voucher fields has been made far easier for developers working with the plugin. There a couple of simple hooks available to let you add some basic voucher data, and then the plugin does the heavy lifting to add settings for these in the voucher template customizer, printing them on the voucher, and on product pages when a voucher is…

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

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 possibility in WooCommerce Memberships to…

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