Forums / Developer / [eZ 4] Custom Discount and Stock Handling
Wenzel Wondra
Tuesday 17 March 2009 9:49:54 am
Hi!
I'm pretty new to ez and hope that you could give me some useful tips on how to handle the following problem:
In my current project we have some kind of concert cards. These cards are split into three types (cat_1, cat_2 and cat_3), with different prices. I've made a custom class with product attributes so far - hopefully I am on the right way? Because ez does not provide stock handling, I have also added some more attributes eg: stock_cat1, stock_cat2 etc.
Now I need to calculate some fixed discount when a user adds eg 3 concert cards of the same attribute/category to the basket. Also the pseudo stock should be corrected after the checkout.
How could that be solved?
thanks,wewo