WooCommerce extension updates & releases

WooCommerce Memberships 1.9: Paving the way for Teams

WooCommerce Memberships version 1.9 is being released today! Exactly one year after 1.7, our biggest feature-packed release since the plugin inception. In between there have been 15 releases, 1 minor and 14 patch releases (according to semantic versioning terms). That’s more than one plugin update per month! Version 1.8 was too an important release: it had to account for WooCommerce 3.0 compatibility, an important milestone for the world’s largest eCommerce platform. For this reason, though,…

Read More

Build first WooCommerce extension

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

Ask SkyVerge

How to Output the WooCommerce SKU via Shortcode

Today’s Ask SkyVerge question is from Ted: I’m trying to embed the WooCommerce SKU of the product being viewed into a link in short product description for that product. Basically, I’d like to pass the SKU (aka video ID) into a link over to a generic streaming video page. This is an interesting idea, and something that we could easily implement using a shortcode. As we can’t directly insert PHP into our post content, a…

Read More

WordPress development tutorials

How to Create a WordPress Shortcode

Shortcodes are a great feature of WordPress, and many plugins include their own handy shortcodes. For example, WooCommerce includes several shortcodes. These can allow you to create “Buy Now” buttons, insert products into blog posts, display related products or featured products, and more. While these shortcodes are really helpful, as are the shortcodes included by most plugins or extensions, it’s still very useful to create a WordPress shortcode for your own use. For example, I…

Read More