Copied to clipboard

Flag this post as spam?

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


  • David Parr 48 posts 183 karma points
    Nov 16, 2015 @ 09:27
    David Parr
    0

    Discount rules based on custom property

    We have a requirement to discount the total order price based on the total quantity and a custom quantity property of specific order lines.

    On the following website, https://www.three-choirs-vineyards.co.uk/shop/wine-list/, a user will receive n percentage discount for ordering x amount of bottles. The requirement is to mix and match this quantity based discount rule with a custom property for wine case product types, 'bottleQuantity', which indicates the amount of bottles in any given case.

    Does Tea Commerce support this requirement out of the box? So far we have tried adding a property rule that checks if bottleQuantity is greater than or equal to x but it doesn't actually do anything or perhaps our assumption about what this property rule does is wrong.

    Thanks,

    Dave

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 18, 2015 @ 13:54
    Anders Burla Johansen
    0

    Can you try and post a screenshot of your rule and settings and also where the bottleQuantity is - is it an order property or an order line property

  • Laurence Gillian 595 posts 1212 karma points
    May 24, 2016 @ 13:54
    Laurence Gillian
    0

    I'm having possibly the same problem:

    enter image description here

    Using the following code to set the property:

     if (shippingCountry.RegionCode == "UK")
     {
         TC.AddOrUpdateOrderProperty(1, "shippingCountryUK", "1");
     }
     else
     {
         TC.AddOrUpdateOrderProperty(1, "shippingCountryUK", "0");
     }
    

    I have double checked that custom property is getting setting, by recalling it using the order.Properties[] syntax. It's all set properly, as soon as the Property rule is removed the discount works as expected.

    Any ideas would be greatly appreciated :-)

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 25, 2016 @ 08:50
    Anders Burla Johansen
    1

    Fixed in 3.1 :)

    https://documentation.teacommerce.net/revision-history/

    Kind regards

    Anders

  • Laurence Gillian 595 posts 1212 karma points
    May 25, 2016 @ 11:20
    Laurence Gillian
    0

    Thanks Anders!

    I also noticed an issue with discounts not being passed across to PayPal, but perhaps this is fixed in this release too! :-D

    Is 3.1 compatible with v6, or is it time to upgrade to v7? I wasn't quite sure from the release notes - it perhaps it works, but some new features aren't available? Thanks! L

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 25, 2016 @ 14:12
    Anders Burla Johansen
    1

    Discounts are not sent detailed to PayPal but the total price should be correct. But we changed that in a newer version of TC, but cant remember the specific version.

    The 3.0.8 for v6 is actually 3.1.0 - we just had it named wrongly. And it works with v6. But would make sense soon to update to Umbraco 7 :) And yes - the variant stuff is only Umbraco 7+ so if you want that, then you need to run v7

    Kind regards

    Anders

Please Sign in or register to post replies

Write your reply to:

Draft