WooWeekly #459: Discount Cheapest Cart Item | Default Tax Location

Hello there,

Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 18,204 subscribers) so that you can learn something new.

It’s a sad day for my family and me. The bad news arrived yesterday, after many days of good ones. I guess it’s always like that – a person tends to go whenever they’re ready to do so. It’s difficult to write these words, but at the same time life and business must go on even when it’s difficult, and especially when there is a little kid that requires our full attention. So, dear Francesco, RIP, and see you there at some stage (I still got work to do, such as raising a good kid!).

Anyhow, here are this week’s WooCommerce tips – enjoy.

Rodolfo Melogli


BUT FIRST… THANK YOU, STAGE SPONSOR!

GoDaddy PRO WordPress Ecommerce hosting with WooCommerce gives you the freedom to sell anything, anywhere online – from physical products to digital downloads, services and subscriptions. We’ve integrated WooCommerce into our Managed WordPress platform where you can choose from over 75 premium WooCommerce extensions included in your plan for as long as you host your ecommerce store with us. That’s nearly $6,000 in free premium extensions — at no extra charge — to build a powerful, customized ecommerce store.


1. WooCommerce Tips & Snippets

WooCommerce: Apply Discount to Cheapest Cart Item

By Rodolfo Melogli, Business Bloomer

If you run WooCommerce store promotions, this little snippet will help you with that. For example, how to run a “Buy 2 products, get one half off” or a “Buy 3 products, get the cheapest one for free” campaign? See snippet

WooCommerce: Set Customer Default Tax Location

By Rodolfo Melogli, Business Bloomer

So, today, we will be setting the default tax location when “Customer billing address” has been chosen AND the customer is either logged out (so, no billing address is set) or logged in but have no saved address (for example, a brand new customer). See snippet

How to Add a Product Video to Your WooCommerce Gallery

By Gina Lucia, IconicWP

Looking to add a product video to your WooCommerce product gallery? In this guide, we’ll show you how. As a bonus, we’ll outline why adding a featured video is beneficial for your store’s sales and customer experience. Read more


2. ICYMI: WooCommerce Articles

WooCommerce: “New Order” Email Recipient Based on Billing Country

By Rodolfo Melogli, Business Bloomer

The amazing thing about WooCommerce is that you can override any setting with a few lines of code. In today’s example we will try to code a solution where the “New Order” WooCommerce email will be delivered to a custom recipient based on the billing country. Read more

WooCommerce: Count Variation Sales (Shortcode)

By Rodolfo Melogli, Business Bloomer

This will require we either query the orders that contain such variation ID, and then calculate the sum – or that we install a snippet on day 0 so that we can count variation sales from that moment onwards, without having to query and calculate anything. We will study the latter, and then display the result via a shortcode, so that you can use it anywhere, even inside the variation description. Read more

WooCommerce: Display Long Description Instead Of Short One @ Single Product Page

By Rodolfo Melogli, Business Bloomer

Now, what if you don’t use the “Short description” in your WooCommerce store, and you wish to display the “Long description” on the right hand side of the featured image instead? Well, here’s a simple snippet for you. Read more

WooCommerce: Hide SubCategory Products On Product Category Pages

By Rodolfo Melogli, Business Bloomer

You’d think that this was a core WooCommerce setting – it’s not. In fact, from the WordPress “Customizer“, you can set the product category page display to “Show products” only, “Show subcategories” only, or “Show subcategories and products” (see screenshot below). But these 3 options, in my opinion, could and should do much better. Read more

WooCommerce: Limit Daily Sales For Cheap Products (Anti-Spam)

Today, I’d like to share another anti-spam snippet that I’m currently testing on Business Bloomer. Most carding attacks, in fact, end up with the purchase of a single product in the $1-$9 range – which means that limiting the daily sales for specific, inexpensive, products may do the trick. Read more ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Delete Customer After a Failed (Spam) Order

In today’s “episode” I will try to clean the WordPress User database table after a failed order, because I’m really angry when “17PmU3MmKZS9ZAy7 17PmU3MmKZS9ZAy7” manages to register an account on Business Bloomer after a carding attack! Read more ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Checkout Anti-Spam Honeypot

Here’s my second attempt to fight against WooCommerce spam, without installing a captcha plugin. A few posts ago I covered the My Account user registration spam, so today I want to tackle the WooCommerce Checkout, and try to “trick” spam bots. ~ Rodolfo Melogli, Business Bloomer


THANK YOU, BALCONY SPONSORS!

Our powerful ecommerce plugins have been created from the ground up to help store owners boost sales and improve customer experience. IconicWP plugins are designed so you can customize your online store without any coding knowledge. Plus, we’ve created up-to-date guides to get you started. Our plugins work well with many well-known WordPress templates/themes, page builders, and plugins. Plus, we’re always adding more!

Optimize the SEO of your WordPress site with SEOPress: titles and metas, xml & html sitemaps, social sharing, Analytics, Local SEO, WooCommerce SEO, automatic and manual schemas, Google News, Video sitemap, Search Console integration and so much more. Fully integrated with all page builders thanks to our Universal SEO metabox and now with AI for maximum productivity. Super easy to use, no coding required, white label, no ads. Already 300,000 active installations. Start ranking now!

Orderable, a specialized WooCommerce plugin for restaurants, revolutionizes the online ordering process by allowing customers to conveniently place pickup or delivery orders on your website, completely fee-free. This all-in-one solution handles everything, including WooCommerce installation, simplifying menu management and order processing. With its user-friendly front-end and efficient back-end, Orderable ensures a seamless experience for both customers and restaurant operators.

Nexcess Managed WooCommerce hosting is fast, easy-to-use, and includes built-in performance tools like extra PHP workers and a global CDN, which means their hosting is fully optimized for selling online. Nexcess offers free migrations, a 30 day money-back guarantee, and helpful support from WooCommerce experts 24/7/365. They are even officially recommended by WooCommerce! If you’re a serious WooCommerce store owner who needs to sell without limits, get started today by visiting Nexcess.


Enjoyed this issue?

Well, congratulations for reading this far – you’re one of a kind! There are many ways you can support WooWeekly and help us spread the word. Thank you in advance!

Share ithttps://wcwkly.com/newsletter-archive/

Invite friendshttps://wcwkly.com

Leave a reviewhttps://www.businessbloomer.com/shop/newsletters/wooweekly-free/

Become a sponsor for as little as $97https://wcwkly.com/sponsors/


Author

  • Rodolfo Melogli

    Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.

    View all posts

Leave a Comment

Proudly supported by

Join them?