Developer forum

Forum » Integration » Live Integration Discount

Live Integration Discount

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi, 

I have a situation where I might be missing some setting, but I'm unsure what is misconfigured.

It concerns a dw 9.15.10 solution connected to BC14 via LiveIntegration, there the Live Prices are enabled, and ERP Controls discounts is checked.

In BC a "Sales Price Agreement" has been setup to add a 20% discount to a specific Article.

When i view a certain product that has a discount in BC, I see the original price without a discount, this is the response:

11-14-2023 10:50:43.416 : DebugInfo: Response GetProductsInfo received: '<?xml version="1.0" encoding="utf-8"?>
<tables version="1.2.0.19_NAV14.6.36463">
  <table tableName="EcomProducts">
    <item table="EcomProducts">
      <column columnName="ProductId"><![CDATA[ART03976]]></column>
      <column columnName="ProductVariantId"><![CDATA[]]></column>
      <column columnName="ProductIdentifier"><![CDATA[ART03976..LANG3]]></column>
      <column columnName="ProductNumber"><![CDATA[ART03976]]></column>
      <column columnName="ProductName"><![CDATA[Nebla Verdejo 75cl]]></column>
      <column columnName="ProductPrice"><![CDATA[5.49]]></column>
      <column columnName="ProductStock"><![CDATA[71]]></column>
      <column columnName="ProductCurrencyCode"><![CDATA[]]></column>
    </item>
  </table>
</tables>'.

When I order the product, throughout the checkout flow the price is still 5,49.

But on the order confirmation, the discount is applied as expected:

What could be the reason the discount is not applied before this? I need the discount to show also on the detail page and basket/checkout ofcourse.

Thanks for any help.

Justin


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Justin,
it looks like you are using a bit old version of the runtime package (1.2.0.19) however there is a newer one 1.2.0.25 available in the Integration downloads section. So can you update the extension and check if the issue is solved?
BR, Dmitrij

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hey Dmitry,

The CodeUnit has been updated to the latest version, but the behaviour stays the same. This is the response now:

12-26-2023 05:15:09.436 : DebugInfo: Response GetProductsInfo received: '<?xml version="1.0" encoding="utf-8"?>
<tables version="1.2.0.25_NAV14.6.36463">
  <table tableName="EcomProducts">
    <item table="EcomProducts">
      <column columnName="ProductId"><![CDATA[ART03976]]></column>
      <column columnName="ProductVariantId"><![CDATA[]]></column>
      <column columnName="ProductIdentifier"><![CDATA[ART03976..LANG3]]></column>
      <column columnName="ProductNumber"><![CDATA[ART03976]]></column>
      <column columnName="ProductName"><![CDATA[Nebla Verdejo 75cl]]></column>
      <column columnName="ProductPrice"><![CDATA[5.49]]></column>
      <column columnName="ProductPriceWithVat"><![CDATA[6.643]]></column>
      <column columnName="ProductStock"><![CDATA[71]]></column>
      <column columnName="ProductCurrencyCode"><![CDATA[]]></column>
    </item>
  </table>
</tables>'.

 

Besides the fact that the discount only shows up on the order confirmation, I also noticed that in the order confirmation the discount is applied twice in the "Subtotal" calculation: the green marked numbers are correct, but the yellow takes the already discounted price and discounts another 20% on top of that:

Hope you can help me figure out what to check next?

Thanks,

Justin

 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Justin,
do you have a url for this solution so I can look on it?
BR, Dmitrij

 

You must be logged in to post in the forum