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 the order. This is definitely…

Read More

SkyVerge WooCommerce Extensions

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 a new page accessible from…

Read More

SkyVerge WooCommerce Extensions

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 active member of any plan…

Read More

Email

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, and adding a prompt like…

Read More

Team

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 good example), then you may…

Read More

WooCommerce reviews + tutorials

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 a WooCommerce extension, as you’ll…

Read More

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 instead. While you can show…

Read More

WordPress development tutorials

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 by the user, and automatically…

Read More

SkyVerge WooCommerce Extensions

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 you use this to provide…

Read More

Prevent Repeat Purchase with WooCommerce

Depending on what kind of products you sell, you may want to prevent customers from purchasing a WooCommerce product more than once from your store. For some shops, you may want to disable any repeat purchases at all, or you may want to prevent repeat purchase only for a specific product. We’ve seen this most commonly with WooCommerce Memberships, as shops may want to restrict a free trial membership from being “purchased” again, or restrict…

Read More