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
    Jun 16, 2014 @ 14:18
    Pasha
    0

    Display price for product

    Hey,

    I want to display price on product page including all offers in format NOW 250 was 300. I'm using CalculatePrice method for this:

    var price = CatalogLibrary.CalculatePrice(sourceProduct);
    if (price.IsDiscounted)
    {
       resultProductModel.HasDiscount = true;
       resultProductModel.OldPrice = price.ListPrice != null ? price.ListPrice.Amount.ToString() : "";
       resultProductModel.DiscountPrice = price.Discount != null ? price.Discount.Amount.ToString() : "";
    }
    resultProductModel.Price = price.YourPrice != null ? price.YourPrice.Amount.ToString() : "";
    

    Everything is working fine but I have one concern about this method. After user enter a promo code to basket this method show all products on product page with promocode discount. Is this right behavior for this method or I miss something?

    Thanks

    Pasha

  • David Petrie 1 post 21 karma points
    Jun 19, 2014 @ 14:44
    David Petrie
    0

    I am confused by this also.  How do you get promocode discounts to be only displayed in the basket and not throughout the entire site?  The specific example I have in mind is the following:

    -There is a site wide discount applied (10% off say) to all products because it is the end of range.  I want all the prices to show 'was' and 'now' prices which I can get this via the UCommerce.pi.ProceCalculation.  So far so good.

    -Customer goes to the basket and inputs a promocode and get a further 5% off

    -User leaves the basket to continue shopping

    -The 'now' prices displayed on the site now show both discounts applied (i.e. 10% plus further 5%).

    -Customer is now confused and does not know what price the additaional 5% is applied to.

    In this scenario I would only want the promocode discount applied and display in the basket.  How can this be achieved?

    Thanks,
    David 

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 20, 2014 @ 17:02
    Søren Spelling Lund
    0

    Hi guys,

    This is interesting behavior indeed. The reason for what you're seeing is quite straightforward although the behvior is surprising.

    When CalculatePrice runs it simulates a basket with exactly one product in it in order to trigger unit level discounts. Anything triggered for a basket in this configuration is considered a unit level discount and this would include promodoes as they are added and triggered based on order level properties.

    It makes sense to change this behavior to not include promocodes. I will schedule a work item to fix this.

    Thanks for reporting the issue.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 20, 2014 @ 17:36
    Søren Spelling Lund
    1

    I have implemented the fix and it will be included in 6.0.4 due out in a few days once QA is complete.

  • Pasha 7 posts 47 karma points
    Jul 01, 2014 @ 12:55
    Pasha
    0

    Thanks for help!

  • Max 28 posts 80 karma points
    Jul 01, 2014 @ 13:29
    Max
    0

    @Soren, could you please anounce the release in this thread? Thank you.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 02, 2014 @ 12:58
    Søren Spelling Lund
    0

    BTW you can fix this by adding an Order Total award instead of order line or unit price awards. Whenever we evaluate for product listing uCommerce will trigger discounts which apply to the line level and includes these in the prices displayed.

  • Max 28 posts 80 karma points
    Jul 02, 2014 @ 13:33
    Max
    0

    Hi, Soren.

    I checked with marketig dep - they specifically need per item discount. 

  • Max 28 posts 80 karma points
    Jul 09, 2014 @ 09:26
    Max
    0

    Any news on that 6.0.4 release? 

    Thanks!

  • Morten Skjoldager 440 posts 1499 karma points
    Jul 16, 2014 @ 14:07
    Morten Skjoldager
    0

    A new version 6.1.0 is available now http://www.ucommerce.net/en/products/download.aspx

  • Max 28 posts 80 karma points
    Jul 21, 2014 @ 16:59
    Max
    0

    Soren, after update I can see that the problem remains as it was. Please confirm that this request has been fixed in a 6.1.0 of uCommerce so I can proceed looking for an error on our side. Thanks. 

  • Jesper Nielsen 141 posts 498 karma points
    Jul 31, 2014 @ 10:13
    Jesper Nielsen
    0

    Hello Max,

    The fix is in version 6.0.4.

    Kind regards,
    Jesper

    Edit:
    After checking with Søren, the fix was there, but we removed it again, because we felt this behavior was correct in the first place.

    If you do not want this behavior, you need to setup your award as an order level award.

  • Max 28 posts 80 karma points
    Aug 11, 2014 @ 14:34
    Max
    0

    @Jasper, if it's a promo code award, how can I set it up as an order-level award, but discount each product in the basket. Is it possible?

  • Jesper Nielsen 141 posts 498 karma points
    Aug 12, 2014 @ 11:01
    Jesper Nielsen
    0

    An order level discount will affect all the products in the order.

    So if you add a "5% off ordertotal" award, why does this not handle your requirements?

    Kind regards,
    Jesper

Please Sign in or register to post replies

Write your reply to:

Draft