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

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

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

Ask SkyVerge

Change the default WooCommerce External Product Button

This is an Ask SkyVerge question from Manuel: How can I change the add to cart button for external products? I need to use something besides “Buy product” for my external products. The good news here is that there’s already a setting for your WooCommerce external products to change the button text. When you edit the product, you can enter the button text while creating it, right after you enter the product link. This will…

Read More

Ask SkyVerge

How to Print Invoices for WooCommerce Orders by Date Range

We’ve got a new Ask SkyVerge question today! This one comes from Thomas: Does Print invoices / packing lists have a date picker? For example, if I would like to print only invoices from May 23 to May 28, can I do this? This is an excellent question, and the answer is not right away, but it can with a bit of help. Print Invoices / Packing Lists allows you to print invoices, packing lists,…

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

Moving WooCommerce Upsells on Product Pages

Your WooCommerce products can have upsells assigned to them so that you can encourage customers to buy different versions or more expensive products while visiting your product page. You can add these under Product Data > Linked Products while editing a product, and the upsells will be shown at the end of your product description. However, most times this is at the bottom of your product page. What if customers don’t end up scrolling all…

Read More

Ask SkyVerge

Create a “My Memberships” section shortcode with WooCommerce Memberships

Today’s question comes from Scott: Can I use or create a shortcode to have the “My Memberships” area outside of the “My Account” page? In other words, if I wanted to place My Memberships on a page other than the default /my-account page, would I be able to do that? This is an interesting question, as you could add the “My Memberships” table to a custom page on your site, protect that page for members,…

Read More