Negative price products used as discounts in TC 1.4.2.4
I've a website using an old version of Tea Commerce 1.4.2.4 and we want to implement a voucher code discount system.
There's no upgrade path from this version to the version that contains the marketting module and the version of Umbraco is 4.7 too.
I was planning on manipulating the product prices with some logic when a voucher code was entered but it just ocurred to me that adding a negativley priced product to the cart to represent the voucher could be a simple way to go if it would work?
Negative price products used as discounts in TC 1.4.2.4
I've a website using an old version of Tea Commerce 1.4.2.4 and we want to implement a voucher code discount system.
There's no upgrade path from this version to the version that contains the marketting module and the version of Umbraco is 4.7 too.
I was planning on manipulating the product prices with some logic when a voucher code was entered but it just ocurred to me that adding a negativley priced product to the cart to represent the voucher could be a simple way to go if it would work?
Regards,
Matt
Hi Matt
I think it would work - BUT can't remember the entire API of v1. But I think if you change the price it will work like that.
Kind regards
Anders
I thought it would be easy enough to try by adding a 'Voucher' product with a price of -200.
It doesn't quite calculate things as I had hoped.
I think it could have been an easy solution nut I don't think this version can handle negative prices.
Does the latest version handle them?
Regards, Matt
Mmm looks like the old version don't like negative numbers.
See the online demo of the latest Tea Commerce. I have changed the price to minus: https://demo.teacommerce.net/expensive-yachts/summer-yacht/
Kind regards
Anders
Ahh thanks Anders.
That yacht is showing a price of positive $500. Is it being cached?
Regards, Matt
The price is rendered with () - which in .NET means negative
Got it.
Thanks!
is working on a reply...