We’ve already seen how to add First & Last Name to the “My Account” register form. Today, I want to expand a bit and show you how to add and save a select box.
Continue reading WooCommerce: Add Select Field to “My Account” Register FormWooCommerce: Change No. of Thumbnails per Row @ Product Gallery
WooCommerce 3.0 completely revolutionized the single product page featured and product gallery images, including their PHP. If, in the past, a simple filter from WooCommerce was enough to change the number of thumbnails per row (https://docs.woocommerce.com/document/change-number-of-thumbnails-per-row-in-product-galleries/), this does not exists anymore π
So, let’s see how we can achieve this in WooCommerce 3.0 and above. For this example we’ll use two themes – in fact some theme-specific CSS is also needed together with the PHP.
Continue reading WooCommerce: Change No. of Thumbnails per Row @ Product GalleryWooCommerce: Deny Checkout if User Has Pending Orders
As WooCommerce snippet requests by Business Bloomer Club members keep coming to our private Slack channel, it’s time to publish a very useful customization.
Today, we’ll see how to deny purchasing to a given billing email address, if such a customer happens to have a pending order already!
Continue reading WooCommerce: Deny Checkout if User Has Pending OrdersWooCommerce: Product List View @ Shop
Interesting, isn’t it? This has been on my to-write list for ages, so today I want to show you my first attempt at turning the Shop page into a list/table of products as opposed to the default grid.
This is especially suitable to B2B WooCommerce shops, or for those websites where customers don’t really need to see huge product images and are used to order “from a product form”.
Let’s see how I did this – I will try to comment my PHP as much as possible so you can understand my strategy. Enjoy!
Continue reading WooCommerce: Product List View @ ShopWooCommerce: Disable Grouped Product Price Range $$$-$$$
You may want to disable the Grouped product price range on the Shop and Single Product page. This usually looks like $100-$999. With this snippet you will be able to display “From: ” in front of the minimum price, or otherwise completely hide it π
Continue reading WooCommerce: Disable Grouped Product Price Range $$$-$$$WooCommerce: POA / Call for Price @ Single Product
You might want to show a “POA” price and/or a “Call for Price” button when you have a product with an empty price.
Many businesses require this, mostly real estate and wholesalers. So let’s see how it’s done π
Continue reading WooCommerce: POA / Call for Price @ Single ProductWooCommerce Checkout Fields Customization Guide
The WooCommerce Checkout page plays a huge role in your ecommerce success. It is one of the most important part of your conversion funnel. This is the page that brings revenue.
It doesnβt matter how many people are visiting your website – if no one makes any purchase. Complicated checkout process is one of the main reasons for shopping cart abandonment.
You should always look for ways to make your checkout process as simple as possible. If you are using WooCommerce as your ecommerce solution you can easily change the checkout page design, remove or change the existing checkout fields order.
Continue reading WooCommerce Checkout Fields Customization GuideWooCommerce: “Share your Purchase on Twitter” @ Thank You Page
Boom! I was thinking of a way to show a “Share your Purchase on Social Media” on my thank you page right after someone becomes an official supporter. So, I spent some time coding and – as always – now I’m going to spend some more time to share my hard work!
Leave a comment below if this was helpful – and if you want to test this out, you’re very welcome to become an official Business Bloomer fan of course π Continue reading WooCommerce: “Share your Purchase on Twitter” @ Thank You Page
WooCommerce: Display Variations’ Stock @ Shop Page
Thanks to the various requests I get from Business Bloomer fans, this week I’m going to show you a simple PHP snippet to echo the variations’ name and stock quantity on the shop, categories and loop pages.
Of course, if “Manage stock” is not enabled at variation level, the quantity will be null, and therefore the returned string will just say “In stock” or “Out of stock”.
Enjoy!
Continue reading WooCommerce: Display Variations’ Stock @ Shop PageWooCommerce: Display Advanced Custom Fields @ Single Product
Advanced Custom Fields plugin is a great way to add custom, advanced fields to the WooCommerce Single Product Page. Many struggle to display such fields on the front-end, so this simple snippet should help you!
Continue reading WooCommerce: Display Advanced Custom Fields @ Single ProductWooCommerce: Add WP Menu to WC Pages via PHP
It’s pretty easy to add another custom menu to your WooCommerce pages via PHP. For example, you might want to add a list of Product Category links, and manage this through the default “Appearance > Menu” in the WordPress dashboard. Continue reading WooCommerce: Add WP Menu to WC Pages via PHP
WooCommerce: Display All Products Purchased by User
When a WooCommerce customer is logged in, you might want to show them the list of previously purchased products (maybe in a custom “My Account” tab).
This is helpful when customers tend to buy the same products over and over again, and therefore you can help them “order again” without having them to search the whole product catalog again.
Continue reading WooCommerce: Display All Products Purchased by UserWooCommerce: Display % Discount @ Shop Page
Default WooCommerce shows a “Sale” badge if the item is on sale – but what about showing the exact sale percentage instead?
I implemented this for one of my freelance clients so here you go with the easy-peasy solution. Enjoy!
Continue reading WooCommerce: Display % Discount @ Shop PageWooCommerce: Add “Quantity” Label in front of Add to Cart Button
Here’s another little WooCommerce tweak for your website user experience: let’s add some text in front of the Add to Cart button that says “Quantity: “.
As usual, we go looking for the right “hook”… the WooCommerce plugin is full of them and adding some custom content in the exact position we want is very easy. Enjoy!
Continue reading WooCommerce: Add “Quantity” Label in front of Add to Cart ButtonWooCommerce: Display Height, Length, Width @ Shop Page
Another interesting snippet that could come very handy. How do we show the product dimensions (height, width, length) in the shop / category / tag / loop pages? This could be a handy trick for shops that calculate shipping rates based on volume, or when the volume is a vital piece of data customers need to know before proceeding further. Either way, enjoy!
Continue reading WooCommerce: Display Height, Length, Width @ Shop Page