A
A
Alexander Bondarenko2020-09-25 11:43:28
WordPress
Alexander Bondarenko, 2020-09-25 11:43:28

How can I add a coupon to the current user through the code?

How can I assign a coupon to a user, I have the following logic, if the user has 10,000 then a coupon for the next basket by 5%, 20k - 10%, 30-15%, how can I add a coupon to the current user through the code, only under the condition that he did not have it yet, thanks in advance, I will be grateful for any help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question