Coupons and Membership System
-
Hello guys,
I would like to modify the coupon system on WooCommerce. But to be more specific I want to change how a coupon is being validated at cart and checkout pages.
We have a loyalty program (implemented outside of WordPress) and it has thousands of members each having a member ID, name, expiration date… etc.
I want the loyalty program members to be able to enter their membership ID at cart or checkout page and get a discount.
I just thought that the best way to implement this feature is by modifying the coupon validation mechanism on WooCommerce. The coupon field will accept both coupon codes from the website and membership IDs.
We have all the membership details on a separate database. I think the most na?ve way to do this is by entering all membership IDs as coupons but this process will be exhausting (we have 7k IDs), time consuming, and the coupon directory would need to be updated regularly to include new members.
I have the membership IDs validation code, but I don’t know what edits/hooks I need to perform this operation.
I am also open for other ideas, and thanks in advance.
- The topic ‘Coupons and Membership System’ is closed to new replies.