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! Continue reading WooCommerce: Change “You may also like…” Text
I developed a custom payment gateway plugin for a client, who wanted to add a similar method to “cod” (cash on delivery). FYI, he wanted to add a method called “card on delivery”. I simply duplicated the code, added the PHP to a file, made a plugin and gave him the plugin zip file. And everything was working great… until he did a test checkout. Continue reading WooCommerce: Fixing Fatal error Call to undefined function wc_get_order()
I think this is a major flow in WooCommerce and I’m surprised they still haven’t thought about it! A client of mine had to create a brand new payment gateway – but unless you login to WordPress you can’t find out what the payment method was from the order emails. Here’s how to fix it. Continue reading WooCommerce: Add Payment Method to Order Emails
Mostly when the long description and additional information are short, you may want to move this block of content to the right hand side of the product image – as opposed to “waste” a lot of space underneath it. Here’s how you move the product tabs! Continue reading WooCommerce: Move Product Tabs Under the Short Description
A client of mine decided to add a little notice (“30-day return policy offered”) just above the Add to Cart button on the WooCommerce single product page. There is no need to say this will allow her to increase the click-through rate and her sales conversion rate. Continue reading WooCommerce: Display Content Above Add to Cart @ Single Product Page
Interesting topic. A client of mine asked me to remove the image from only one single product page – but not from ALL the product pages. The same story applies if you want to apply CSS changes to any specific woocommerce page. Here’s how I did it. Continue reading WooCommerce: Apply CSS to One Product Only
JetPack sharing is a great plugin that allows you to add social media sharing to your woocommerce products. However, the sharing buttons will only show at the bottom of the “Long description”.
How to move that up a bit, say between the short description and the product tabs? Simply add this function to your functions.php file editor: Continue reading WooCommerce: Move JetPack Social Sharing above single product page tabs
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.
However, Always remember that PHP is better than CSS: with CSS you load the element and then hide it, while with PHP you stop the element from loading. Clearly, PHP is a better way to do it! Continue reading WooCommerce: Remove Additional Information Tab @ Single Product
WooCommerce database stores the number of products sold.
Therefore, you may want to show such number on the product page, close to the Add To Cart button. As we’ve seen in my book Ecommerce and Beyond, showing the number of sales for each product can increase your sales conversion rate.
All you need is pasting the following code in your functions.php to show it in the product summary. Continue reading WooCommerce: Show Number Of Products Sold on Product Page
You may want to disable the variable product price range which usually looks like $100-$999. With this snippet you will be able to hide the highest price, plus add a “From: ” in front of the minimum price. All you need is pasting the following code in your child theme’s functions.php 🙂 Continue reading WooCommerce: Disable Variable Product Price Range $$$-$$$
If you use a full page width on your product page you might want to change the number of upsells to 3 (or multiple). Also, a client of mine needed the upsells to be above the tabs, so there you go. Continue reading WooCommerce: Change # of Upsells and Move Them Above Tabs