Add Text to the WooCommerce Review Form

Product Reviews are one of the most powerful selling tools your store has. We have an extension to add fields like qualifier questions (“How did this fit?”) and accept attachments like uploads, but you can add simple text notices to reviews without an extension. WooCommerce already includes a couple of additional fields in the review form that are not set: comment_notes_before: shown above the name / email fields when the reviewer is not logged in…

Read More

Get a List of all WooCommerce Coupons

While WooCommerce contains tons of helper functions, such as functions that will give you all “on sale” products, there’s no function in WooCommerce that will return all coupons present within a shop. This is because there’s a pretty easy way to query them yourself because coupons are their own custom post type: the shop_coupon post type. This means that we can simply query all posts for that post type to get a list of WooCommerce…

Read More

WooCommerce reviews + tutorials

Hooking into WooCommerce Actions

This is post 2 of 8 in the series “Build a WooCommerce Extension” Today’s post continues our series on building a WooCommerce extension. We started the series by discussing how to use filters to change your site content, and today’s post will be about actions. Actions and filters make up the basic building blogs of extending WordPress plugins and themes, as they allow you to change or add code to WordPress, themes, or plugins. WooCommerce…

Read More

Overriding Templates in WooCommerce Extensions

WooCommerce has a system in place that will allow you to override core templates within your child theme. This means that you can copy a template file, edit it, and the edited version in your theme will be loaded instead of the core version of the template. We do encourage you not to do this, as most changes can be made via hooks (filters and actions) instead, and this method is far more upgrade-safe than…

Read More

WooCommerce reviews + tutorials

Building Your First WooCommerce Extension

This is post 1 of 8 in the series “Build a WooCommerce Extension” While we’ve written a lot of tutorials on WordPress and WooCommerce development or how to extend WooCommerce, we’ve never written a series on how to start developing WooCommerce plugins. We’ve decided to write about building simple WooCommerce extensions so that you can get started building your own simple plugins to bend WooCommerce to your will. All extensions are WordPress plugins that hook…

Read More

SkyVerge WooCommerce Extensions

How to Import WooCommerce Tabs with Tab Manager

Product tabs are a great tool for organizing your product data, which is why WooCommerce Tab Manager can be very helpful. While the ability to add global and product-specific tabs is useful, you may want to import your tab data instead if you have several tabs to create. This guide will show you how to import global and product-level WooCommerce Tabs with the WooCommerce Tab Manager. This tutorial is only relevant for tabs created with…

Read More

SkyVerge WooCommerce Extensions

Using WooCommerce URL coupons with One Page Checkout

Our friends over at Prospress released an extension recently that we find very cool, and we’ve already integrated several plugins with it. One Page Checkout allows you to create a streamlined, minimal checkout process, and you can use a customized page or select a template to sell your products and complete checkout without ever sending customers to another screen. You can create landing pages, product tables, pricing tables, and more. Since this plugin helps to…

Read More

Add Information to the WooCommerce Shop Page

Today’s tutorial will show you how to add information, such as custom fields or product meta, to the WooCommerce shop page. This can be really useful if you have product information that should be displayed before viewing the single product page. You can add the SKU to the WooCommerce shop page, display available inventory or stock status, show shipping weight, and more. If you’ve never added custom code to your site, check out our tutorial…

Read More

Sort WooCommerce Products by Custom Fields or Post Meta

We’ve got a plugin that will allow you to add WooCommerce product sorting options (not to mention one that will remove core sorting options as desired), but you may need a more customized solution for sorting your products. In this case, you may want to sort WooCommerce products by your custom fields or by other post meta values. Let’s go over how we can add sorting options for custom fields that we’ve set for our…

Read More

How to Check if the WooCommerce Cart is Empty

We had an interesting question the other day from a user who wanted to know if it’s possible to do something only when the WooCommerce cart is empty. WooCommerce core includes several handy methods that can help you out with this, but lots of tutorials show a cart-empty check with the $woocommerce global. However, this is only necessary if working with WooCommerce 2.0 or earlier. You can instead use the WC() global function to cut…

Read More