All posts in Tutorials

Add WooCommerce Email Recipients Conditionally

This comes from an interesting question we got from Helmar: Is it possible to send an “order received” email to a second recipient only if the order contained a tangible product? Background: If I receive orders with tangible products, my shipping company gets a CC of that order in order to fulfill it. If the order contained no tangible product, there’s no need for them to receive a copy of Keep Reading…

Add a custom Member Area section in WooCommerce Memberships

WooCommerce Memberships 1.5 has been recently released. This release consisted of a compatibility release that added support for WooCommerce 2.5, and also included a number of minor tweaks and bug fixes (see here for the complete Memberships changelog). Soon we will begin work on the next release to introduce new features! Meanwhile, here’s another post about the Member Area, a feature introduced in Memberships 1.4 early last December. This component creates Keep Reading…

WooCommerce Memberships: Check for any active membership

WooCommerce Memberships is designed to allow stores to have as many membership plans as desired, and in turn lets you allow customers to have more than one membership. The plugin has conditional checks that allow you determine if a customer / user is an active member of a particular plan, as this only requires the plan ID or slug. However, checking to see if a customer / user is an Keep Reading…

Add a Registration Link to WooCommerce Customer Emails

I got a purchase receipt email recently that had a lot of great details, such as the shipping status of each item ordered, along with some related items that I might be interested in. However, there was one section that I found kind of interesting: the email had a registration prompt telling me all of the benefits of creating an account with the site. I thought this was pretty neat, Keep Reading…

Add Plugin Settings to WooCommerce, Part 2

This is post 6 of 8 in the series “Build a WooCommerce Extension” In part 1 of “Adding plugin settings to WooCommerce”, we showed you how to add plugin settings to an existing settings section (e.g., “Products > General”) or to an existing settings tab in a new section, such as a new section under “Products”. However, if your plugin has a lot of settings, (something like Memberships is a Keep Reading…

Modifying the WooCommerce Memberships Member Area

A couple of weeks ago at SkyVerge we released WooCommerce Memberships 1.4. This new update brought significant innovations in the front-facing side of the extension, with a new “Members’ Area” to display membership information to plan members. This component is based off a few template files which, like any other template in WooCommerce, are fully customizable and extensible. To support these templates, we have also introduced some new WordPress hooks and template PHP Keep Reading…

Add Plugin Settings to WooCommerce, Part 1

This is post 5 of 8 in the series “Build a WooCommerce Extension” Our series has been going over creating your own plugin, but we’ve focused primarily on what your plugin does. You may need to let your users make choices as to how the plugin acts, so your plugin may require its own set of settings. Using the WooCommerce settings API is the best way to add settings for Keep Reading…

How to Add WooCommerce Delivery Estimates

Showing a delivery estimate for WooCommerce shipping methods can help your customers determine which method is best for the order. For example, while free shipping may be available, what if this takes longer and the customer needs the package by a certain date? To avoid situations like this which may result in an abandoned cart, you can communicate the estimated shipping time up front during the cart / checkout process Keep Reading…

How to Generate a Post Excerpt Outside the Loop

When you work with WordPress, you become pretty familiar with using the WP_Post object or objects for custom post types. For example, while working with WooCommerce, products use the WC_Product post object (or the object for a class that inherits this, such as WC_Product_Variation). If you’re in the loop while working with posts or custom post types, get_the_excerpt() is a beautiful function, as it returns the excerpt if it’s set Keep Reading…

WooCommerce Memberships: Renew with a Different Plan

By default, WooCommerce Memberships includes a “Renew” link for an expired membership. This allows the member to renew the membership by repurchasing the product (if available and at its current price) to resume the membership. This lets your member continue with any dripped content s/he already has access to once a set-length membership had expired if the member chooses to re-purchase. However, we had a very interesting question recently: can Keep Reading…