update_post_meta( new_coupon_id, 'discount_type discount_type update_post_meta( new_coupon_id, 'coupon_amount amount update_post_meta( new_coupon_id, 'individual_use 'no'. You have a referral system in place. There is no big setup. Imagine if youve created a coupon for a product on your store that you want everyone to use. Reward both User A and his friend User B:. And thats about it! Once they get to the cart page, a coupon that you define in the backend is automatically applied to their cart. Of course you gotta put your own conditions!
The admin just needs to check a registrati e ricevi un coupon simple checkbox to apply the discount coupon automatically. Under, coupon data Miscellaneous choose, auto coupon as shown in the example and check the Auto coupon box. In such a scenario you can programmatically apply the discount coupon to the order. Simply install, activate, and choose the coupon type for your referrals. order is marked as complete. USE case scenarios: Standard Scenario:.
Pinocchio teatro ranchibile palermo coupon
Ai confini del mare coupon