All posts tagged development

Add a WooCommerce Orders List Column

When viewing the “Orders” list in WooCommerce, you’ll see a set of columns that will show you details about orders in your store. While you can remove columns easily using the “Screen options” tab, adding columns requires some custom code to determine what the column data should be. Let’s take a look at adding some custom WooCommerce Orders list columns today. In this case, we’ll add a “Profit” column to Keep Reading…

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 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…

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…

September in Review

These months just keep rolling by us! Time for another monthly recap 🙂 Our August review mentioned some of the development updates we’ve got today, and we have some new projects in progress as well. General Updates I don’t have too many general updates to share this month, other than it’s been crazy and exciting with several releases on our end. We haven’t written too many blog tutorials since we’ve Keep Reading…

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 Keep Reading…

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 Keep Reading…

Prevent WooCommerce Checkout for Add-on Products

Today’s Ask SkyVerge question comes from Ian (I’m paraphrasing it a bit though): Is there a way to prevent purchase if a customer only has certain products in the cart? I sell ink cartridges as add-ons for printers, but these should not be purchased alone. I tried using a grouped product, but a customer could only order cartridges or remove the main product from the cart. Can checkout require another Keep Reading…