Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Taylor 873 posts 2086 karma points
    Apr 20, 2015 @ 12:52
    Matt Taylor
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Apr 21, 2015 @ 08:34
    Anders Burla
    0

    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

  • Matt Taylor 873 posts 2086 karma points
    Apr 21, 2015 @ 11:05
    Matt Taylor
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Apr 21, 2015 @ 11:35
    Anders Burla
    100

    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

  • Matt Taylor 873 posts 2086 karma points
    Apr 21, 2015 @ 11:42
    Matt Taylor
    0

    Ahh thanks Anders.

    That yacht is showing a price of positive $500. Is it being cached?

    Regards, Matt

  • Anders Burla 2560 posts 8256 karma points
    Apr 21, 2015 @ 11:45
    Anders Burla
    0

    The price is rendered with () - which in .NET means negative

  • Matt Taylor 873 posts 2086 karma points
    Apr 21, 2015 @ 11:49
    Matt Taylor
    0

    Got it.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft