Using the code below, you can add a video that will replace your featured image for the given product. If video is not found, the featured image is displayed instead. Place this code in your functions.php file and note that you may have to edit the function that displays the video to match your theme. […]
You can use the following snippet to add a 1% surcharge to your cart on checkout. You can easily change the $percentage variable to adjust the surcharge percent and you are good to go.
Ever needed to dynamically add/remove products to a visitor’s cart based on their cart contents? The below functions will help you do just that. Place them in the functions.php of your theme or (better) in a separate plugin and you are all set. Just make sure to modify the qualifies_for_incentive function to work based on […]