I would like to make an improved script for automatic adding a bonus product to WooCommerce cart. The bonus product would be added into the cart on adding a specific product(s). But I've never seen any improved and fully working code with features - such as automatic removing the bonus item on removing the primary product(s) from the cart.
IMPROVED!
I've made a code and posted it into the answers. But if you have any idea, how to improve it even more, then your suggestions are welcome!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire