Hi there,
I have a site with Live Integration. Logged in as a customer with a standard discount percentage, I get prices that are discounted correctly. Yet when I am in the cart, the cart summary seems to apply the discount twice. To see what I mean, take a look at this:
On the left this displays as 155.52 and a discount of 60.48. The original price is 216 (180 + 20% V AT at 36). That all looks as it should.
On the right it displays as 155.52 95.04 which I think is the already discounted price of 155.52 discounted by 60.48 again which is wrong.
This looks like a Swift bug to me, as it seems that the LI data we get is correct:
<tables version="1.2.0.16_NAV9.16.45243"> <table tableName="EcomOrderLines"> <item table="EcomOrderLines"> <column columnName="OrderLineProductNumber"><![CDATA[Item1]]></column> <column columnName="OrderLineProductVariantId"><![CDATA[]]></column> <column columnName="OrderLineId"><![CDATA[10000]]></column> <column columnName="OrderLineQuantity"><![CDATA[1]]></column> <column columnName="OrderLineType"><![CDATA[0]]></column> <column columnName="OrderLinePriceWithoutVat"><![CDATA[180]]></column> <column columnName="OrderLineUnitPriceWithoutVat"><![CDATA[180.00]]></column> <column columnName="OrderLinePriceWithVat"><![CDATA[216]]></column> <column columnName="OrderLineUnitPriceWithVat"><![CDATA[216]]></column> <column columnName="OrderLinePriceVat"><![CDATA[36]]></column> <column columnName="OrderLineUnitPriceVat"><![CDATA[36]]></column> <column columnName="OrderLinePriceVatPercent"><![CDATA[20]]></column> <column columnName="OrderLineUnitPriceVatPercent"><![CDATA[20]]></column> </item> <item table="EcomOrderLines"> <column columnName="OrderLineProductNumber"><![CDATA[Item1]]></column> <column columnName="OrderLineProductVariantId"><![CDATA[]]></column> <column columnName="OrderLineParentLineId"><![CDATA[10000]]></column> <column columnName="OrderLineType"><![CDATA[3]]></column> <column columnName="OrderLineQuantity"><![CDATA[1]]></column> <column columnName="OrderLinePriceWithoutVat"><![CDATA[50.40]]></column> <column columnName="OrderLineUnitPriceWithoutVat"><![CDATA[50.40]]></column> <column columnName="OrderLinePriceWithVat"><![CDATA[60.48]]></column> <column columnName="OrderLineUnitPriceWithVat"><![CDATA[60.48]]></column> <column columnName="OrderLineDiscountPercentage"><![CDATA[28]]></column> <column columnName="OrderLinePriceVat"><![CDATA[10.08]]></column> <column columnName="OrderLineUnitPriceVat"><![CDATA[10.08]]></column> <column columnName="OrderLinePriceVatPercent"><![CDATA[20]]></column> <column columnName="OrderLineUnitPriceVatPercent"><![CDATA[20]]></column> </item> </table> <table tableName="EcomOrders"> <item table="EcomOrders"> <column columnName="OrderShippingMethodName"><![CDATA[]]></column> <column columnName="OrderShippingMethodId"><![CDATA[]]></column> <column columnName="OrderShippingFee"><![CDATA[0]]></column> <column columnName="OrderCreated"><![CDATA[TRUE]]></column> <column columnName="OrderId"><![CDATA[]]></column> <column columnName="OrderCurrencyCode"><![CDATA[GBP]]></column> <column columnName="OrderDate"><![CDATA[]]></column> <column columnName="OrderPaymentMethodName"><![CDATA[]]></column> <column columnName="OrderCustomerName"><![CDATA[Imar as 201941]]></column> <column columnName="OrderCustomerAddress"><![CDATA[Test]]></column> <column columnName="OrderCustomerAddress2"><![CDATA[]]></column> <column columnName="OrderCustomerCity"><![CDATA[Test]]></column> <column columnName="OrderCustomerCountryCode"><![CDATA[GB]]></column> <column columnName="OrderCustomerEmail"><![CDATA[]]></column> <column columnName="OrderCustomerFax"><![CDATA[]]></column> <column columnName="OrderCustomerPhone"><![CDATA[]]></column> <column columnName="OrderCustomerZip"><![CDATA[TEST]]></column> <column columnName="OrderDeliveryName"><![CDATA[Imar as 201941]]></column> <column columnName="OrderDeliveryAddress"><![CDATA[Test]]></column> <column columnName="OrderDeliveryAddress2"><![CDATA[Test]]></column> <column columnName="OrderDeliveryCity"><![CDATA[Test]]></column> <column columnName="OrderDeliveryCountryCode"><![CDATA[GB]]></column> <column columnName="OrderDeliveryEmail"><![CDATA[]]></column> <column columnName="OrderDeliveryFax"><![CDATA[]]></column> <column columnName="OrderDeliveryPhone"><![CDATA[]]></column> <column columnName="OrderDeliveryZip"><![CDATA[TEST]]></column> <column columnName="OrderPriceWithVat"><![CDATA[155.52]]></column> <column columnName="OrderPriceWithoutVat"><![CDATA[129.6]]></column> <column columnName="OrderPriceVat"><![CDATA[25.92]]></column> <column columnName="OrderSalesDiscount"><![CDATA[50.4]]></column> </item> </table>
We're using a slightly older version of Swift (1.22) but comparing the code in OrderSummary.cshtml with the latest on Github didn't bring up any relevant differences.
Any ideas?
Imar