WooCommerce: Adding Product Variation Handling Fees

In a Business Bloomer Club Slack thread, a member sought guidance on implementing per product variation handling fees in WooCommerce.

With the challenges of finding compatible plugins, particularly those that support High-Performance Order Storage (HPOS), the community discussed potential coding solutions to streamline the process. If you’re facing similar issues, here’s a breakdown of how you can efficiently add handling fees to your products.

Continue reading WooCommerce: Adding Product Variation Handling Fees

WooCommerce: Add Checkout Fee Based On Shipping Class

Whether you’re dealing with bulky items, fragile goods, or specific shipping items, you can leverage WooCommerce’s flexibility and implement a fee structure that accurately reflects shipping complexities, improves profit margins, and enhances overall order management.

This tutorial gives you a practical solution – dynamically adding checkout fees based on whether a given shipping class is in the cart.

Enjoy!

Continue reading WooCommerce: Add Checkout Fee Based On Shipping Class

WooCommerce: Get Order Fees Total

It’s official – there is no way to get the fees total from an order with a simple PHP getter (not sure why – you can get lots of values such as totals, addresses, dates, URLs with one line of code except for this basic thing!).

So, we’ve got to fix this. Let’s say you have access to the $order object (on the thank you page, in the WordPress dashboard, inside an order email, etc.); here’s a few lines of PHP you can use to calculate the total amount of order fees. Enjoy!

Well, there is actually one line of PHP you can use to calculate the order total fees (despite I didn’t think so while I was writing this post) – I’ve now added it to the list of order “getters” here (where you can get lots of order values such as totals, addresses, dates, URLs with one liners).

So, in order not to waste this post, you still find below the original way to calculate order total fees (by looping through all order fees and adding up totals), as well as the one liner that can help you save time. Enjoy!

Continue reading WooCommerce: Get Order Fees Total

WooCommerce: How To Sell Restaurant Food Online

The COVID-19 pandemic has made millions of restaurants around the globe shut their doors and adapt to a different and much more convenient way of doing business – accelerating the online restaurant ordering system. 

Several third-party services like Uber Eats and Grubhub can help you get your restaurant menu online and take online food orders. However, their downside is that they come with a huge cost – and cut 20-30% from your earnings. Plus, they also come with a lack of control and access over your listing, user-friendliness, and menu design. 

Enter WooCommerce restaurant plugins. 

While the process of setting up your own online food delivery system may seem taxing – WooCommerce restaurant plugins make it easy and affordable with their quick setup, ease of management, and high versatility and customizability.  

Ciao Italia Ristorante, an Italian restaurant in the US, made the most out of WooCommerce Restaurant Ordering Plugin in the pandemic to let their customers order food from their homes and leverage curbside pickup. The plugin allowed them to design a one-page food ordering form – making food ordering and checkout quick and easy for their customers. 

Adam Tracksler, who developed the website, said they launched on day one, and the plugin allowed them to focus on the design and get their restaurant going and website running quickly amidst the pandemic – boosting revenue and saving infrastructure costs. 

Several other restaurants around the globe today use WooCommerce restaurant plugins to offer a comfortable and fast order and checkout process for customers and eliminate the need to pay a major chunk of their hard-earned money to third-party services

Let’s explore some of the best WooCommerce restaurant plugins to help you get 100% of your revenue straight from the customers and boost your business revenue. 

Continue reading WooCommerce: How To Sell Restaurant Food Online

WooCommerce: Add Checkout Fees Based on Custom Radio Button

This is a great WooCommerce snippet (or plugin, if you wish to call it like that) for those who want to provide conditional checkout fees. For example, you might need to display custom checkout radio buttons to pick premium packaging types, gift wrapping options, specific services or whatever can increase your AOV (Average Order Value).

Radio button selection must work with “Ajax” – which means as soon as the radio button is chosen, checkout must refresh in order to display the updated fees and totals.

Something similar (and also more complex, such as offering additional products) is achieved by the WooCommerce Checkout Add-Ons Plugin sold on the official WooCommerce.com marketplace. But in this case, we want to take a look at custom coding so you’ve got something to play with! Enjoy.

Continue reading WooCommerce: Add Checkout Fees Based on Custom Radio Button

WooCommerce: Force Cart to Specific Amount (Deposit)

Here’s a very simple snippet that achieves a very complex task – what if you wanted to force your Cart to charge a deposit or a fixed fee, no matter the cart total?

Well, thankfully WooCommerce is pretty flexible and a lot of workarounds can be found.

In this case, we will study two possible solutions: (1) a negative “cart fee” to make the total become e.g. $100 and (2) a filter to completely override the calculated cart total e.g. $100.

Sounds like Japanese? Great – here’s why you’re on Business Bloomer. Copy the snippet, apply it to your test WooCommerce site and see the magic happen – without knowing anything about coding!

Continue reading WooCommerce: Force Cart to Specific Amount (Deposit)

WooCommerce: Add Checkout Fee for a Payment Gateway (e.g. PayPal)

Here’s a simple PHP snippet to add a fee to the checkout for every payment or for a specific payment gateway.

Please do remember that for certain payment gateways such as PayPal, adding checkout fees is currently against their Terms of Service so make sure to check this first.

As usual, this needs to be copied and pasted in your child theme’s functions.php file. Enjoy!

Continue reading WooCommerce: Add Checkout Fee for a Payment Gateway (e.g. PayPal)