WooCommerce: Add a Required Checkbox Field On Checkout

Add this code to your theme’s functions.php file:

WooCommerce: Don’t Add Product To Cart If Already Exists

Put it in your theme’s functions.php. Whenever your visiot will try to add a product twice mistakenly, it will keep only 1 of this product in his cart. However, he will be still able to change the quantity of the single product he has in cart.

Disable Auto Check of “Ship to different address” Checkbox on Checkout

Put it into your theme’s functions.php:

WooCommerce: Hide Coupon On Checkout If Already Exists

This code will disable coupon on cart if it’s already applied.

Change Any Button, Input & Text With 1 Function (Also For WooCommerce)

How many times did you encounter a “Add to Cart” button or “View Cart” button on your WooCommerce website and you wanted to change it to something else, and didn’t know how? In this code snippet we can change any string we want (as long as it’s not a string with variables, it may be […]