WooCommerce reviews + tutorials

How to Create a Simple WooCommerce Payment Gateway

This is post 8 of 8 in the series “Build a WooCommerce Extension” This series walks you through some of the beginner to intermediate skills you’ll need to build your first WooCommerce extension. Building Your First WooCommerce Extension Hooking into WooCommerce Actions How to Create a WooCommerce Widget Widgets, Part Deux: Create a Smart WooCommerce Widget Add Plugin Settings to WooCommerce, Part 1 Add Plugin Settings to WooCommerce, Part 2 WooCommerce Class Members Example: Create…

Read More

SkyVerge WooCommerce Extensions

Modifying Print Invoices and Packing Lists Templates

When our Print Invoices & Packing Lists rewrite was released, we talked about how customizing templates was modified. The goal of these changes was to make it far easier to modify templates in an upgrade-safe way so that they didn’t have to be overridden for changes to take effect. To that end, a more modular template approach was taken, along with the addition of ample WordPress hooks to allow changes changes as needed. (Our developer…

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” This series walks you through some of the beginner to intermediate skills you’ll need to build your first WooCommerce extension. Building Your First WooCommerce Extension Hooking into WooCommerce Actions How to Create a WooCommerce Widget Widgets, Part Deux: Create a Smart WooCommerce Widget Add Plugin Settings to WooCommerce, Part 1 Add Plugin Settings to WooCommerce, Part 2 WooCommerce Class Members Example: Create…

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

Team

Add Plugin Settings to WooCommerce, Part 2

This is post 6 of 8 in the series “Build a WooCommerce Extension” This series walks you through some of the beginner to intermediate skills you’ll need to build your first WooCommerce extension. Building Your First WooCommerce Extension Hooking into WooCommerce Actions How to Create a WooCommerce Widget Widgets, Part Deux: Create a Smart WooCommerce Widget Add Plugin Settings to WooCommerce, Part 1 Add Plugin Settings to WooCommerce, Part 2 WooCommerce Class Members Example: Create…

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” This series walks you through some of the beginner to intermediate skills you’ll need to build your first WooCommerce extension. Building Your First WooCommerce Extension Hooking into WooCommerce Actions How to Create a WooCommerce Widget Widgets, Part Deux: Create a Smart WooCommerce Widget Add Plugin Settings to WooCommerce, Part 1 Add Plugin Settings to WooCommerce, Part 2 WooCommerce Class Members Example: Create…

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