I'm setting up a store for a school. Pricing is done by the hour, but it is:
- Nonlinear - no formula; must be done via lookup table
- Cumulative - so the third 1.5 hour product has a different price than first or second
For example:
1.0 hour of classes = $100
2.0 hrs of classes = $186
3.0 hrs of classes = $263
So if I set three 1 hour classes with price = $100, that's only correct if it's the only class in the cart. When adding the second one hour class, the price should be $86.
Furthermore, if the first class is removed, the price of the second item needs to revert from $86 to $100.
I'm assuming this can't be done without writing some custom code, which I'm fine to do -- but I'd like pointers on how to proceed, if anyone has any tips :-)
Should I
- use the Notify/Observer framework to adjust prices as items are moved in/out of the cart... or
- modify whatever code does the cart totallling, or
- use a custom Payment or Order Total module?
Thanks in advance,
Mike
Bookmarks