Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Pasha 7 posts 47 karma points
    Mar 12, 2014 @ 11:54
    Pasha
    0

    Offer based on Order Dynamic Properties

    Hey,

    I want to create the an offer base on Order Dynamic properties. I want to create discount for 10th purchase. I setup uCommerce back-end in marketing section like this:

    enter image description here

    And have this code in my controller:

    var basket = SiteContext.Current.OrderContext.GetBasket().PurchaseOrder;
    basket["TEN"] = "PASHA";
    basket.Save();
    Library.ExecuteBasketPipeline();
    

    But I don't see any discount in my basket object. Is this right way of using dynamic property? Or I miss something?

  • Jesper Nielsen 141 posts 498 karma points
    Mar 14, 2014 @ 08:43
    Jesper Nielsen
    100

    It is the correct way of doing this.

    But a bug in the price calculation meant that dynamic properties was not considered until checkout.

    This was fixed and released in the latest version: 5.3.0.14057 :-)

    Kind regards,

    Jesper

  • Pasha 7 posts 47 karma points
    Mar 14, 2014 @ 18:42
    Pasha
    0

    Thanks for help. I'll try update my package.

Please Sign in or register to post replies

Write your reply to:

Draft