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 generates a custom checkbox on the product page, which if checked, adds meta to the order. You’ll notice if the checkbox is ticked and the product is added to the cart and purchased, the meta key and value is shown below the product name in the mini-cart, cart, checkout, thank you page, emails, and my account order view. In this particular example we add a checkbox to indicate whether the product is a gift.
Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.