Sometimes you may be providing free products to your customers, so their cart value may be $0. If this is the case, you may want to change the text on the WooCommerce “Place Order” button when there are no “chargable” products in the cart. It’s actually a pretty simple snippet:
If you need to allow your users to be able to choose from a list of WordPress roles on your Gravity Form, this snippet is for you. It easily allows you to populate all the roles from your site into the choices on a field. This includes the default WordPress roles (Admin, Editor etc), and […]
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 […]
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 […]
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 […]
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, […]
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 […]
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 […]
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 […]
As somebody who works on WordPress sites a lot, I’m often having to access the same properties for the WordPress $post object day in day out. The problem is, my memory is like a sieve, so I’m constantly having to search for how to access these properties. That’s what this quick reference cheat sheet is […]
- 1
- 2