Hello everyone, I'm trying to implement a flexible...
# support
t
Hello everyone, I'm trying to implement a flexible promotion in solidus that can be applied to a
line_item
based on the days of the week(Mon, Tues, Wed, Thurs, Fri, Sat, Sun), this is basically to change item price depending on the day. I'm a beginner(.i.e I've just started learning solidus) and I'm just trying to understand how to implement this using the modules mentioned in the documentation(handler, action, and rule). I will appreciate any tips, suggestions, or advice. Thanks 🙏
p
Feel free to ask if you need help 💪 Here you can find the new cool guides: https://edgeguides.solidus.io/advanced-solidus/promotions-system
t
thanks
a
Woah, this is super specific promotion obviously. Somebody could correct me if my disclaimer is wrong, but I do not think you can use the default Promotion feature from Solidus for this problem. My general suggestion would be to create a new model of
SaleDay
that you can customize to your own liking. Put some attributes like
day
,
sale_price
so you can determine how much you want the
line_item
to go on sale on a specific day
t
thanks @Ahmad Ridwan Fauzi this is really helpful
a
No worries. 😉