IPromotionEngine.GetDiscountPrices returns incorrect prices

Vote:
 

Hello,

I am trying to use the GetDiscountPrices(IPromotionEngine, IEnumerable(), IMarket, Currency) method to retrieve promotional prices for multiple products at once. This doesn't seem to work properly: while the first product returns the correct price, the 2nd product has a discounted price which is way too low and any product after that has a price of $0.00.

I have been able to reproduce the issue in the latest version of Quicksilver (12.5) using a purpose built test page. It outputs this:

  • SKU-36127195
    SKU-36127195: price $10.88, default price $14.50
  • SKU-39813617
    SKU-39813617: price $22.88, default price $30.50
  • SKU-39855373
    SKU-39855373: price $36.38, default price $48.50
  • SKU-36127195 & SKU-39813617 & SKU-39855373
    SKU-36127195: price $10.88, default price $14.50
    SKU-39813617: price $3.25, default price $30.50
    SKU-39855373: price $0.00, default price $48.50

The first three bullets on the page show discount prices for individual SKUs, the last bullet displays discount prices for all SKUs together. I would expect the discount prices in the last bullet to match the discount prices of the first three bullets.

Steps to reproduce:

  1. Set up a new instance of Quicksilver
  2. Place my test page, which you can download here, in Qucksilver's web root folder
  3. Delete the existing marketing campaigns
  4. Create a new campaign and mark it as active.
  5. Create a new discount of type "Buy Products for Discount in Same Category"
    • Configure it to give a 25% discount on all products in the "Mens Shoes" category
  6. Navigate to /PromotionEngineTest.aspx
#195755
Aug 07, 2018 11:59
Vote:
 

Can't say anything technical just yet, but this is a very good way to ask question. Well done. Keep it up!

#195756
Aug 07, 2018 12:15
Vote:
 

I registered COM-7663 and will leave it to my colleagues, as I'm on parental leave now 

#195803
Aug 08, 2018 10:07
Vote:
 

Thanks for your swift response, Quan Mai! Enjoy your leave :)

#195804
Aug 08, 2018 10:17
Vote:
 

the bug is now fixed and is coming in Commerce 12.7 :) 

#196139
Aug 20, 2018 12:58
Vote:
 

Works now like a charm. Thanks for fixing this!

#196376
Aug 28, 2018 16:27
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.