Today we take a look at the WooCommerce Single Product page and specifically at how to remove the whole Product Tabs Section, and re-add the Long Description on its own (and not inside a tab).
Continue reading WooCommerce: Remove Product Tabs, Show Long DescriptionCategory: WooCommerce Tips
Here’s a collection of tips, snippets and articles to answer your biggest WooCommerce customization questions. You can use the search button above to refine your search, or alternatively click on one of these popular WooCommerce customization tags: Checkout page, Single product page, Cart page
You might also want to visualize the WooCommerce “hooks” in case you’re a little more familiar with coding – here’s the link to the popular “Visual Hook Guide Series“, where you can find all the WooCommerce PHP actions in a user-friendly way :)
If you wish to subscribe to our weekly WooCommerce email roundup, click here. Otherwise, enjoy the latest articles on this page!
WooCommerce: Show Published Date @ Single Product
Hello WooCommerce Customizers! Today we take a look at the WooCommerce Single Product Page and specifically at how to display the product/post published date. It might be useful to users in case you need to show how “new” a product is, or if you have specific needs. Enjoy ๐
Continue reading WooCommerce: Show Published Date @ Single ProductWooCommerce: Show Only 1 Category @ Shop Page
Hello WooCommerce Customizers!
Today we take a look at the WooCommerce Shop page and specifically at how to show only the category you want (and exclude all the others). Some store owners may need this, you never know the weird questions you get asked!
Continue reading WooCommerce: Show Only 1 Category @ Shop PageWooCommerce: Disable Link to Single Product @ Shop
Today we take a look at the WooCommerce Loop / Shop Page and specifically at how to disable the link to the single products.
Some store owners prefer to skip the single product page, and simply have customers add to cart from the shop page. Enjoy!
Continue reading WooCommerce: Disable Link to Single Product @ ShopWooCommerce: Disable Payment Method If Product Category @ Cart
Today we take a look at the WooCommerce Checkout and specifically at how to disable a payment gateway (e.g. PayPal) if a specific product category is in the Cart.
There are two tasks to code in this case: (1) based on all the products in the Cart, calculate the list of product categories in the Cart and (2) disable a specific payment ID if the target product category is in the Cart.
May sound difficult but don’t worry – solution is right below. Enjoy!
Continue reading WooCommerce: Disable Payment Method If Product Category @ CartWooCommerce: Add First Name to Order Email Subject
Today we take a look at the WooCommerce Emails and specifically at how to change the subject of the Customer Processing Order email by adding the billing “First Name”. As usual, this is a matter of 3 lines of PHP code – feel free to copy/paste and customize it to your liking ๐
Continue reading WooCommerce: Add First Name to Order Email SubjectWooCommerce: Disable Payment Gateway For Specific Shipping Method
Today we take a look at the WooCommerce Checkout Page and specifically at how to disable a payment gateway (for example PayPal) when a specific shipping method is selected (e.g. “local_pickup”).
Specifically, you will learn how to “get” the selected shipping method on the go (thanks to “sessions”), and also how to “unset” a payment gateway. Enjoy!
Continue reading WooCommerce: Disable Payment Gateway For Specific Shipping MethodWooCommerce: Move Product Gallery Thumbnails
Today we take a look at the WooCommerce Single Product Page and specifically at how to move the image gallery from under the main image to somewhere else, for example in the short description. Enjoy! Continue reading WooCommerce: Move Product Gallery Thumbnails
WooCommerce: Exclude Category from ‘products’ Shortcode
The WooCommerce [products] shortcode displays all products in your shop. There is even an attribute called “category” where you can specify comma-separated list of category slugs in order to further filter the output.
What you can’t do is define a list of unwanted categories (think of “uncategorized” for example) i.e. a list of categories you want to exclude from the products shortcode output.
So, here’s the fix, enjoy!
Continue reading WooCommerce: Exclude Category from ‘products’ ShortcodeWooCommerce: Add Privacy Policy Checkbox @ Checkout
Here’s a snippet regarding the checkout page. If you’ve been affected by GDPR, you will know you now need users to give you Privacy Policy consent. Or, you might need customer to acknowledge special shipping requirements for example.
So, how do we display an additional tick box on the Checkout page (together with the existing T&C checkbox)?
Continue reading WooCommerce: Add Privacy Policy Checkbox @ CheckoutWooCommerce: Display Stock Availability @ Shop Page
In this tutorial, my goal is to show the “stock availability” under each product in the shop, category and archive pages.
This follows exactly the same settings as the stock display of the single product page. Go to /wp-admin/admin.php?page=wc-settings&tab=products§ion=inventory to manage “Stock display format”. Enjoy!
Continue reading WooCommerce: Display Stock Availability @ Shop PageWooCommerce: Move / Reorder Checkout Fields (Email, Country, etc.)
We’ve already seen how to disable fields on the checkout page by using a simple snippet.
Given my ultimate goal of trying to do as much as possible without installing heavy-weight plugins, today we’ll take a look at how to move fields around inside the billing & shipping sections.
Continue reading WooCommerce: Move / Reorder Checkout Fields (Email, Country, etc.)WooCommerce Visual Hook Guide: Checkout Page
Here’s a visual HTML hook guide for the WooCommerce Checkout Page.
This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations – and you can also easily copy & paste. Enjoy!
Continue reading WooCommerce Visual Hook Guide: Checkout PageWooCommerce: Remove Cross-Sells @ Cart Page
A client wanted to completely remove the area on the Cart page where “You may be interested in…” cross-sell products show.
This is helpful if business needs change at some time and you don’t want to manually remove cross-sells from each single product in your store by hand. Enjoy!
Continue reading WooCommerce: Remove Cross-Sells @ Cart PageWooCommerce: Remove Sidebar @ Single Product Page
Unless your theme is overriding the WooCommerce sidebar, removing this from the single product page is quite easy! Continue reading WooCommerce: Remove Sidebar @ Single Product Page
WooCommerce: Change Input Type @ Checkout Fields
This challenging task (yet very simple at the end) was requested by one of my US clients. As they trade in the USA only, they wanted to force “numbers only” in the ZIP input field, so that letters would not be allowed. And WooCommerce doesn’t do this out of the box.
So, let’s fix this – enjoy!
Continue reading WooCommerce: Change Input Type @ Checkout FieldsWooCommerce: Add Product to Cart On Visit Programmatically
Quite an interesting functionality! A WooCommerce client wanted their Cart pre-filled with one product as soon as their customers accessed the website. I don’t remember the exact reason, but this could be useful when you want to give them a free product by default, or you want to send your visitors straight to checkout with a product already in the cart without letting them add anything first.
Adding an item to cart programmatically is the same as “automatically”. Basically, all users will have a default, non-empty Cart filled with an item of your choice. So, let’s see how this snippet works!
Continue reading WooCommerce: Add Product to Cart On Visit ProgrammaticallyWooCommerce: Add Content @ My Account Register / Login Page
A WooCommerce Customization client wanted to add some text above the “Login” and “Register” boxes on the My Account page. Understandably, users may need a bit of an explanation before they take action. Here’s how you do it!
Continue reading WooCommerce: Add Content @ My Account Register / Login PageWooCommerce Visual Hook Guide: Archive / Shop / Cat Pages
I’ve created a visual HTML hook guide for the WooCommerce Archive Page (which is the same page for the Shop, Category, Tag pages). This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can also copy/paste). If you like this guide and it is helpful to you, let me know in the comments!
Thanks to this WooCommerce Archive Visual Hooks Guide, you can now go to your template’s functions.php file and use “add_action(‘place-hook-here’,’your-PHP-function-here’);” – you can then place your custom functions exactly where you like them to be. Enjoy!
Continue reading WooCommerce Visual Hook Guide: Archive / Shop / Cat PagesWooCommerce Visual Hook Guide: Single Product Page
Here’s a visual hook guide for the WooCommerce Single Product Page. This is part of my “Visual Hook Guide Series“, through which you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can copy/paste). If you like this guide and it’s helpful to you, let me know in the comments!
Now that you know the product page hooks, you can override the WooCommerce Single Product Page via your child theme’s functions. You can remove default elements (for example, the featured image, the add to cart form, related products…), you can add your custom elements by picking the correct positioned “hook” and triggering your function, and you can even “move” existing elements. Need a video tutorial? Watch it now โ
Continue reading WooCommerce Visual Hook Guide: Single Product Page