Category Archives: Uncategorised

Auto-Complete WooCommerce Orders

By default, WooCommerce only auto-completes orders that contain only virtual downloadable products. All other orders must be manually marked as complete. However, if your store has a lot of orders that don’t require any processing, having to manually complete lots of orders every day can become a very time consuming task! Luckily, WooCommerce provides a […]

Add Custom Text to the WooCommerce Product Price

This snippet allows you to add any custom text to the price shown on the WooCommerce product and archive pages. Perhaps you need to show some text after the price, for example: “$10 (all prices are in US Dollars).” Or maybe you need to show some text before the price, for example “From $10”. The […]

WooCommerce Country Code List

Often when using snippets for WooCommerce, you’ll need to know the country code that WooCommerce uses for a specific country. Well, here’s a handy list of all of the countries in WooCommerce and their corresponding country code: Afghanistan AF Åland Islands AX Albania AL Algeria DZ American Samoa AS Andorra AD Angola AO Anguilla AI […]

Prevent Quantity Change in the WooCommerce Cart Block

By default, WooCommerce allows your customers to change the quantity of a product in the cart. This is perfect for a lot of stores, but there are sometimes situations where you’ll want to prevent your customers from changing the quantity in the cart area. This was a simple task when using the old [woocommerce_cart] shortcode, […]

Populate Gravity Form Field with the Current User’s Role

Sometimes when building a Gravity Form, you’ll need to populate the current user’s role into a field. This could be to use with conditional logic, or just for your records. Whatever the reason, it’s simple to populate the current user’s role into a field using this snippet. The snippet doesn’t require any customization, you just […]

Change the Gravity Forms Stripe Statement Descriptor

If you’re taking payments on your Gravity Form using the Gravity Forms Stripe Add-On, you may have noticed that there’s no setting to be able to specify the statement descriptor that Stripe uses. In other words, there’s no way to change what is displayed on your customer’s bank statement, as Gravity Forms default to what […]

Style the WooCommerce Stripe Payment Form

When you’re using the official WooCommerce Stripe Payment Gateway, the default payment form provided by Stripe is a bit boring, and most probably doesn’t fit in with the style and branding of your checkout. You’ve probably tried styling it with custom CSS, but found that doesn’t work (it’s because the form is in an iframe provided […]

Prevent Quantity Change in the WooCommerce Cart

By default, your customers can change the quantity of a product whilst on the WooCommerce cart. In most situations, that’s great, but there are circumstances where this is less than ideal. Using the snippets below, you can prevent your customers from being able to change the quantity on the cart page. The snippets work by […]