WooWeekly #456: Limit Daily Sales | Delete Failed Order Customer

Hello there,

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

After yet another carding attack on Business Bloomer, today’s snippets give you further workarounds to try to tackle bots. I kinda like this “series” I’ve created lately, so that you can test stuff on your sites as well and tell me if they work. For sure, today’s snippets work beautifully, as long as you’re ok with how they are built.

In regard to my WooCommerce Mini-Plugins, there have been no new releases, but I hope to get back to coding soon. There’s lots going on at the moment so it’s difficult to get everything done!

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

Rodolfo Melogli


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: 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

5 Ways to Improve the WooCommerce Checkout Process

Customers abandon shopping carts for various reasons, ranging from high shipping fees, slow delivery, and complicated checkouts. To combat them, we’ll show you how to improve checkout processes to encourage customers to convert. Read more ~ Maddy Osman, Nexcess

2. ICYMI: WooCommerce Articles

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

WooCommerce: Disable “Password Changed” Administrator Emails

The “Password Changed” email is – actually – a WordPress core notification. It goes to admins when a WordPress user changes their password, and the email body says something along the lines of “Password changed for user: XYZ“. WooCommerce provides us developers with a handy filter, that we can use for this exact reason. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Add to Cart Form @ Shop Page

Today I’d like to experiment a little, and see what happens when we include the “add to cart template” (i.e. the one you see on the WooCommerce Single Product page) under each product on the WooCommerce Shop page. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Display “Related Product Categories” @ Single Product Page

In this experiment, we will first calculate the current product’s categories, and then use a WooCommerce shortcode to output them as a grid, right below the related products section. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Get Customer Second Last Order

There is a native, handy way to get a WooCommerce customer’s last order. This time, I want to write some custom code to get the second last order instead. We will indeed reuse most of the above function code and change it slightly. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Disable Payment Gateway By Product Type

Ever wondered if you could toggle payment gateways based on whether a given “product type” is in the WooCommerce Cart? For example, disable PayPal if there are simple subscription products, or enable Stripe only when there are variable products? ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Anonymize All Users & Orders

Especially when you need to let other people (such as developers) log in to your WooCommerce website, you may want to protect the identity of your customers and your order details. ~ Rodolfo Melogli, Business Bloomer


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!

Struggling to find the right words to describe your products? ProductWriter.ai is here to help. Our AI-powered tool uses your product data to generate engaging descriptions in seconds. Say goodbye to spending hours writing copy or hiring a copywriter. With ProductWriter.ai, you can generate product descriptions right within WooCommerce, no extra apps or websites are needed. Try it for free today!

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/

Leave a Comment

Proudly supported by

Join them?