Answer the question
In order to leave comments, you need to log in
How to implement a promotion system in an online store?
Good day, dear experts. I am writing an online store on Laravel and faced the problem of implementing a discount system. The idea is to make a promotion that will make a discount on all products of a certain category, or on a specific product, the promotion has an expiration date (start date and end date). I am considering an implementation option through Task Scheduling. Is there some kind of package for this or do everything by hand?
Answer the question
In order to leave comments, you need to log in
It is unlikely that there is a ready-made package, except perhaps a ready-made store on Laravel)
As a draft, you can sketch out a database schema:
product
category
sale
sale_category
sale_product
id
name
type (fixed, percent, formula)
value
start (datetime)
end (datetime)
The idea is to make a promotion that will make a discount on all products of a certain category, or on a specific product, the promotion has an expiration date (start date and end date).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question