Posted on 03/07/2018 22:04:33
I might not be clear on what I try to achieve here...
This only concerns Orderline Discount (Exclusive) - not Order Discounts inclusive/exclusive.
I'm trying to show the after- and before-prices as shown in the attached image, and not show the orderline discounts as their own rows, but the effect they have on the orderline itself. As of now the orderline total is fine and shows the total discount for that line. But when an orderline discount is applied with a voucher I have no tag giving me the discounted price of one unit of that orderline.
The goal is to show the prices on an orderline in the cart like this: Unit discounted price Unit normal price
As I see it a orderline discount can be set to only be valid for one ore more product(s), activating it with a voucher code doesn't make it less orderline(product) specific... So as I said, the discount I've made is product/orderline specific, but activated on the order when entering a voucher code.
I fully understand that there is a slight difference to the Product.Discount.Price tag in the two scenarios, but I still feel that triggering the exact same orderline discount just via a voucher code, should have a tag outputting the discounted unit price on the affected orderline since it is an orderline discount... something along the way of Ecom:Order.OrderLine.UnitDiscountPrice, which should give me the same discounted price in both scenarios, voucher activated or not...
Is it totally "mental" what I'm saying here? :-)
P.S. As mentioned earlier, I've got it working doing a little math in razor, but when I feel I'm right I don't let it go that easily ;-)