Believe it or not, the answer to this very frequent question is inside the WooCommerce settings… so don’t worry too much about coding if you’re not a developer!
From the WooCommerce shipping rates, you can select “Free Shipping” as a method but that would apply to ALL products – so how do you override the shipping settings and allow a single product to have free shipping? Continue reading WooCommerce: How to Assign Free Shipping to a Single Product?
Yet another million dollar question… not! In fact, the answer is pretty damn easy: you should use both payment gateways on your WooCommerce checkout (sorry about the spoiler). And here’s the proof. Continue reading Should I use PayPal or Stripe @ WooCommerce Checkout?
As a WooCommerce user, WooCommerce blogger and WooCommerce developer I often hear this question: “What’s the best hosting for WooCommerce?“.
Well, first and foremost, there is no “best” hosting for WooCommerce (and WordPress in general). There are so many choices out there that defining the “best” is impossible. Besides, if there were a “best” hosting platform, there would be only one hosting company left in business. Continue reading What’s the Best Hosting for a WooCommerce Website?
This is a guest post by Towhidul Islam of Atlantis Theme – if you like the article, make sure to thank him in the comments!
With 100,000 active users, Storefront is dubbed as the “official WooCommerce theme” as it is designed, developed and maintained by WooCommerce Core developers themselves.
It follows the same WooCommerce philosophy – flexibility: the latest version has 48 Action Hooks & 61 Filter Hooks (Storefront Hook Reference by WooCommerce).
One of the most common questions while working with any WordPress theme is: “How I can tweak the look and layout of my theme?“. For experienced WordPress users, this is not an issue – but for users who don’t want to get their hand dirty with CSS and PHP, it can be daunting.
The good news is that there are Storefront plugins that solve this exact problem. And you don’t have to learn coding to modify the look of your Storefront theme 🙂 Continue reading How to Customize Storefront Theme in a Few Clicks (and without Coding)
We already saw how to check if a product category is in the cart, if a product ID is in the cart, and if a product ID is in the order… now it’s time to complete the series with the latest addition!
For this client, the scope was to do something on the “Thank You” page if a certain product category was purchased. For example, echo a “Thank you for becoming a member!” image in case the category “membership” was in the order.
Here’s the snippet, together with PHP comments so that you can understand how this is done. Enjoy! Continue reading WooCommerce: Check if Product Category is in the Order
In the past, WooCommerce cart and checkout pages used to show “$0.00” beside each free shipping rate. But given that many freelance clients requested this customization, today we’re bringing this back to life with just a few lines of PHP 🙂 Continue reading WooCommerce: Display $0.00 Amount For Free Shipping Rates
A freelance client sells two distinct products on the same website: a membership and an online course. Two different audiences, different formats and… different Terms & Conditions.
The goal was therefore to display the “Terms & Conditions” checkbox on the Checkout page based on the product in the cart. Once again, we’re going to use Conditional Logic. With that, the snippet is pretty easy to code! Continue reading WooCommerce: Per-Product Terms & Conditions @ Checkout
I’ve been wanting to publish this guide for a long while. As a freelancer, every day I repeat many operations that make me waste time – and one of them is indeed “How to get ____ if I have the $product variable/object?”.
For example, “How can I get the product SKU”? Or “How can I get the product short description”? Or maybe the product stock level, shipping class, tax class, price, regular price, sale price, and so on… hopefully this article will save you time 🙂 Continue reading WooCommerce: Easily Get Product Info (ID, SKU, $) from $product Object
Let’s talk about checkout UX: if a user is willing to pick up the item in store, why should there be a shipping form on the checkout?
Well, let’s see how we can hide this dynamically with a bit of PHP and JS! Continue reading WooCommerce: Hide Shipping If Local Pickup Is Selected
This has been on my to-write list for a looooooong while! You might want to show a “POA” or “Call for Price” when you have a product with no 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 Button @ Single Product Page
Case scenario: if you add a product to cart with a specific SKU, you need another product automatically added to cart and a 100% coupon discount applied to it as well.
So here follows the PHP snippet of course! Continue reading WooCommerce: “Buy One Get One” (Without a Plugin!)
A client asked to show a “Product Inquiry” button on the Single Product Page which would display, upon click, a Contact Form with an automatically populated subject (Contact Form 7 plugin must be installed of course). Here’s how I did it! Continue reading WooCommerce: Product Enquiry Form @ Single Product Page (CF7)
Woo 2.6 introduced Shipping Zones – and with that we can play with simple PHP to accomplish lots of “advanced” shipping rules, such as shipping by weight.
With many of Business Bloomer fans always asking for this sort of customization, today we’ll see how to do just that. Without the need of just another plugin 🙂 Continue reading WooCommerce: Shipping by Weight (Without a Plugin!)
The new shipping zone management that was introduced with Woo 2.6 gives us the chance to add flat rate, free shipping and local pick-up methods by default.
But what if a client requires 3 different rates depending on the order amount (tiered shipping)? For example: “For orders up to $100, shipping = $5; for orders up to $250, shipping = $2; for orders above $500, shipping = free”.
Is this possible without using a plugin? Well, the answer, as usual, is absolutely yes! Continue reading WooCommerce: How to Setup Tiered Shipping Rates by Order Amount
I invoice clients via WooCommerce, and then send them the “Invoice Email”, which takes them to the “Order Pay” page. Of course, I want to give them the option to pay via “Bank Transfer” (bacs), but I don’t want this to be visible on the default checkout page.
We’ve seen in the past how to disable payment gateways given certain conditions… but how do we “enable” one? Here’s a snippet for that – enjoy! Continue reading WooCommerce: Enable Payment Gateway Only for “Order Pay Checkout”
The conditional tags of WooCommerce and WordPress (also “WooCommerce and WordPress Conditional Logic”) can be used in your functions.php to display content based on certain conditions. For example, you could display different content for different categories within a single PHP function. Continue reading WooCommerce Conditional Logic – Tags, Examples & PHP
We’ve all been there… WooPanic! What do I need to do? What on earth is happening? Is my website going to break?
First of all, relax 🙂 Not much to worry about.
In this post, we’ll see why that notice appears, what problems it could cause and what you can do to fix it. Continue reading Fixing “Outdated Copies of WooCommerce Templates”
WooCommerce Customizers: the Visual Hook Guide is back 🙂
Here’s a visual HTML hook guide for the WooCommerce Emails. 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.
Let me know in the comments if this resource it’s helpful and how! Enjoy 🙂
Continue reading WooCommerce Visual Hook Guide: Emails
Today’s snippet has been widely requested by many readers, clients and WooCommerce fans. We already saw in the past how to Limit State Dropdowns to One State Only (for both Shipping & Billing) and How to Sell to one State only (Billing).
However, we never covered a much more common setting: what happens when Billing is allowed to every state but Shipping is limited?
In order to get a little help, I’ve reached out to Diego Zanella, a WooCommerce genius who is also the author of the Aelia Currency Switcher plugin for WooCommerce. Continue reading WooCommerce: Limit Shipping to Only One State
Here’s a visual hook guide for Storefront Theme by WooCommerce.
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. Also, you can copy & paste in seconds and speed up your customization time.
Let me know in the comments what you think about this resource! Enjoy! Continue reading Storefront Theme Visual Hook Guide