How you doing?
It’s a warm December Wednesday here in Sicily, Italy. Christmas is already around the corner (where did this year go???) and Black Friday/Cyber Monday hype is finally over.
So, welcome back to our WooCommerce Weekly appointment – here comes a series of WooCommerce articles put together by yours truly so that you can learn something new – you’ll also find a list of previous articles in case you missed any.
New WooCommerce Tutorials
WooCommerce: Edit External Product Image URL
We’ve already seen how to open the External Product “Buy Product” button in a new browser tab – and now it’s time to complete the full picture for External/Affiliate WooCommerce Products: how do we also link the “featured” image to the same external URL? Enjoy: https://businessbloomer.com/woocommerce-edit-external-product-image-url/
Revised WooCommerce Tuts (so many this week!)
WooCommerce: 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: https://businessbloomer.com/woocommerce-add-billing-first_name-to-email-receipt/
WooCommerce: Disable Payment Gateway for Specific User Role
You may want to disable payment gateways depending on the user role or user capability. For example, you may want to disable PayPal for “user role: shop_manager” or enable a specific gateway for “user role: customer”. All you need is pasting the following code in your functions.php: https://businessbloomer.com/disable-payment-gateway-specific-user-role-woocommerce/
WooCommerce: Remove Product Tabs, Show Long Description
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): https://businessbloomer.com/woocommerce-remove-product-tabs-echo-long-description/
WooCommerce: Remove Additional Information Tab @ Single Product
The “Additional Information” tab on the single product page is somewhat annoying and, honestly, quite useless. There are 2 simple methods to “hide” it or delete it completely: a CSS and a PHP solution. In the first case, you can input the code in your style.css; in the second case use your child theme’s functions.php: https://businessbloomer.com/woocommerce-remove-additional-information-tab/
WooCommerce: Edit “You may also like…” Text
Apparently, there is no easy way to edit the “You may also like…” WooCommerce string as they don’t provide us with a “PHP filter”. Thankfully, we can take advantage of a WordPress function called “gettext” – so here’s a quick workaround for you: https://businessbloomer.com/woocommerce-change-may-also-like-text/
WooCommerce: Disable Zoom, Slider & Lightbox @ Single Product
Sometimes, cool things don’t apply to certain businesses. Also, keeping the default WooCommerce behaviour might slow down your website, should you not need to use a specific functionality. For example, I’m talking about the new “Featured Image Zoom”, introduced by WooCommerce a while ago. What if your customers don’t need this? How can you disable it? https://businessbloomer.com/woocommerce-disable-zoom-gallery-slider-lightbox-single-product/
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: https://businessbloomer.com/woocommerce-poa-call-price-button-price-empty/
WooCommerce: Remove, Rename, Add “Sorting” Options @ Shop
We’ve seen in the past how to completely remove the “Default Sorting” dropdown that shows in the WooCommerce Shop, Category and Product Archive pages. Sometimes, however, you might just need to remove one of the default options, rename a sorting option accordingly to your needs or even add a brand new sorting method. As usual, a few lines of PHP are sufficient to achieve anything, thanks to WooCommerce hooks and filters: https://businessbloomer.com/woocommerce-remove-rename-add-default-sorting-options-shop/









