M
M
makerkz2014-04-04 19:46:07
MongoDB
makerkz, 2014-04-04 19:46:07

How to make a system of coupons and bonuses for an online store?

Good day!
There is a catalog (in the future, an online store) of books. MongoDB is used as a database. I searched in the Russian-speaking part of the Internet, but, unfortunately, I did not find it. How can I implement a system of coupons and bonuses in an online store. Interested in process architecture.
1) Coupon system - there are coupons that can be used to get a discount at checkout. Coupons can be used once or multiple times; you can set a certain number of uses of the coupon, or coupons can be used until a certain date. The coupon can be used at checkout, of course, only one coupon can be used per order. In the future, the order history will indicate that a coupon was used for payment.
2) Bonuses - after payment, a certain percentage of the order amount is credited to the user's account (may also vary by category or some other factors). In the future, you can exchange these bonuses for any services, or for free books.
I don't want to reinvent the wheel, so I'm asking you. How can all this be implemented? I looked at the Magento database structure, but did not find anything. Perhaps you can share some links.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-04-05
Protko @Fesor

What you describe is not directly related to the structure of the database. In any case, bonuses can be just a field in the user's document. The bottom line is that you need a payment method through bonuses, essentially.
For coupons - you can also mark what was used when. But it is necessary to resolve vseravno in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question