There are no pre-requisites in order for you to be able to implement this solution.
Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.
Need support with the snippet? We’re Here to Help You, Contact Us!
This snippet automatically creates a coupon code when an order is placed and lets the customer know to share said coupon code to give their friend money off. Specifically, this code creates a coupon code based on the customer’s name and the discount amount. For example, if I made an order, a discount code called ALEX20 would be automatically generated which gives users 20% off.
Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.