Creating WooCommerce Checkout Rate Limiting

Posted on: June 1st, 2023 by Stuart

If you have read another one of my posts about Stop Fake Spam WooCommerce Orders you will know how important it is to secure your Woocommerce – in fact any website platform – checkout page from bots testing their stolen credit cards.That’s right, one of the most common ways for thieves to test if their […]

Stop Fake Spam WooCommerce Orders

Posted on: May 31st, 2023 by Stuart

Have you received one or many attempts of fraudulent orders on your WooCommerce WordPress website, as one of my clients did, here are some solutions to reduce this from happening in the future. What this will do is run a function called spam_account which will compare the name. the first line in the address, phone […]

Create WooCommerce PHP Function to get the top 3 products bought at the same time from a product_id

Posted on: May 19th, 2023 by Stuart

Quite a long post title this one, if you would like a function in WordPress/WooCommerce to list the top 3 other products bought at the same time as a supplied product_id here is the code. I am using MySQL join commands to connect up the following three tables:postswoocommerce_order_itemswoocommerce_order_itemmeta Here is the function to add to […]

Remove All Add to Cart Buttons in WooCommerce

Posted on: April 18th, 2023 by Stuart

A client of mine required a button that would remove all Add to Cart buttons throughout the site from a single click. They used this for temporarily stopping purchases if their prices needed changing.This is particularly handy for emergencies! You might need a button to do this for many reasons, but it is not needed […]

How to get and update WooCommerce Regular and Sale prices with or without a post ID

Posted on: June 22nd, 2022 by Stuart

If you simply just want to get to the commands, that’s cool here are the links to take you right there. If you prefer to read what the commands do, keep reading… Display Regular and Sale prices on the Product page Display Regular and Sale prices within the Functions.php file or plugin Updating WooCommerce Price […]