How to add a flash for WooCommerce Featured Products

When a product is on sale in your shop, WooCommerce adds a sales flash to that product to show customers that the product has a sale running to draw their attention to it. This sales flash is shown on the shop page and on the single product page to keep the customer informed. Depending on how you’re using “Featured” products in your shop, you may want to draw the customer’s attention to the featured products…

Read More

Ask SkyVerge

How to Remove WooCommerce Product Images from the Cart

This Ask SkyVerge question comes from Frank: Is it possible to remove the product thumbnails and the links to the product page on the cart page? By default, the WooCommerce cart page includes product images and links to product pages in your shop for each item in the cart. However, the cart template is pretty flexible, and there a couple of handy filters in it that can let us change these cart elements. First, we…

Read More

WordPress development tutorials

Developers: Stop Using sslverify = false — WordPress has you covered

I listened to a talk recently about using WordPress to communicate with external APIs, which is something we do frequently at SkyVerge. We’ve built over 20 payment gateway integrations for WooCommerce, each of which needs to communicate with the payment processor’s API. One thing that I noticed in the talk is that setting sslverify = false when using wp_remote_get or wp_remote_post was recommended. This is a fairly common practice and has thus become recommended for…

Read More

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

Ask SkyVerge

WooCommerce: Remove Link to Product Page from the Shop

We’ve got a couple new Ask SkyVerge questions prepped for you this week! The first question comes from Randy: I’m wondering how to remove the links on the shop page to the single product page — I simply want users to be able to click on the ‘add to cart’ button on the shop page. If you’re using WooCommerce 2.5+, there’s a code snippet that can do this for you now! Please see this comment…

Read More

Ask SkyVerge

How to Hide SKUs on WooCommerce Product Pages

Here’s an Ask SkyVerge question from Marley: Is there a way for me to hide SKUs in WooCocommerce from the single product template without overriding it? I’m currently overriding the single product meta template and deleting the SKU from being adding, but I’d rather do this via a code snippet so I’m not overriding that template if it can be done. We covered this previously in our 20 WooCommerce How to’s, but I think it’s…

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