Try our conversational search powered by Generative AI!

Price in tracking should be per unit, not entire line item

Found in

EPiServer.Commerce 10.4.3

Fixed in

EPiServer.Commerce 10.5.1

(Or a related package)

Created

Mar 24, 2017

Updated

Apr 24, 2017

Area

Core

State

Closed, Fixed and tested


Description

We require the “price” element to be sent on following pages:

  • Basket
  • Checkout
  • Order

The value of the “price” element should always match the price per unit. So, if 1 unit of an item costs 22.00 and user adds 2 units to the basket, the following is incorrect:
"items": [

{ "qty": 2, "price": 44.0000000000, "refCode": "P-42517751" }

],

It should be changed to this:
"items": [

{ "qty": 2, "price": 22.0000000000, "refCode": "P-42517751" }

],

At the moment, the Quicksilver implementation always sends a total value for this item, not the price per unit. This bug is replicated on basket, checkout and order tracking requests.
Solution: Change the “price” element to match the price per unit for these three page types.