Categories
Code Snippets

Apply a coupon for minimum cart total

The code snippet below allows you to: Show a notice on the cart and checkout page, reminding customers that they get a discount if spending more than a minimum amount. Automatically apply a discount and show a notice that the discount was applied when the cart total is more than a minimum amount. Requirements: A coupon called […]

Categories
Code Snippets

Add a message above the login / register form

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. This code will add a custom […]

Categories
Code Snippets

Customize the WooCommerce breadcrumb

You need to add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Change the ‘Home’ text […]

Categories
Code Snippets

Add a surcharge to cart and checkout – uses fees API

Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Add a percentage based surcharge to all transactions […]

Categories
Code Snippets

Automatically Complete Orders

Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. You could also change the “Completed” status to […]