Tricky discount calculation
I'm not having much luck implementing a discount.
We would like to offer a discount of 'every 2nd item at half price'. Item could be the same product or a different product. We have only 10 products if that helps.
Any clues on how to go about this using PHP?