Forums / Developer / [eZ 4] Custom Discount and Stock Handling

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

[eZ 4] Custom Discount and Stock Handling

Author Message

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