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. This tutorial requires beginner PHP…

Read More

month in review

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 been busy announcing updates, but…

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

Ask SkyVerge

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 category to be present? Sure…

Read More

Checking if the WooCommerce Cart Contains a Product Category

While many plugins treat all products as if they’re the same, your client may not want to for your store’s needs. For example, shop owners may want to show Checkout Field Editor fields only for certain product types, show a mailing list opt in for membership products only, or add a banner at checkout if a customer is purchasing an item from a specific category. As such, it can be useful to have some quick…

Read More

WooCommerce reviews + tutorials

How to Create a Simple WooCommerce Payment Gateway

This is post 8 of 8 in the series “Build a WooCommerce Extension” Within our series on building a WooCommerce extension, we’ve talked about using classes while building a widget and while creating a complex shortcode. Today we’ll take a look at building a simple WooCommerce payment gateway integration, as this will give us an opportunity to extend a WooCommerce class. WooCommerce gives you several core classes, such as payment gateway or email classes, that…

Read More

SkyVerge WooCommerce Extensions

Setting minimum and maximum input values with Measurement Price Calculator

A frequent question I get from developers using our Measurement Price Calculator plugin is along these lines: Can I set minimum and maximum input values for measurements? At present, this isn’t possible because (1) a UI for measurement attributes would be a bit tough to do on the current product page without being confusing, and (2) the inputs for measurements are currently text fields, not number inputs. The reason for this was to maintain the…

Read More

SkyVerge WooCommerce Extensions

Limiting Members to One Membership with WooCommerce Memberships

When we built WooCommerce Memberships, one of the biggest requests we had from our surveys and beta testers was to build a plugin that would allow customers to have as many memberships as they wanted to purchase. This became one of the major decisions we made in the initial version, and any customer can have 0 or more memberships. However, some shops want to limit the number of memberships a customer can have, most commonly…

Read More

WooCommerce reviews + tutorials

WooCommerce Class Members Example: Create a WooCommerce Upsell Shortcode

This is post 7 of 8 in the series “Build a WooCommerce Extension” When building your first WooCommerce plugins, it’s a good idea to look at other extensions or WooCommerce core itself for ideas. You’ll notice that many of them take an OOP (object-oriented programming) approach. Rather than being composed solely of functions that take in data, use some logic to manipulate the data, then output data, the code focuses on objects and the properties…

Read More