Developer forum

Forum » Integration » LiveIntegration of discounts from BC

LiveIntegration of discounts from BC

Tomas Gomez
Reply

Hi,

We are using Swift 1.6.1 on a DW 9.13.7 with a LiveIntegration from BC. We configured that BC manages prices and discounts, and set a product with a discount.

The product details page displays only the final price of the product, but not the PriceBeforeDiscount (that is, the strikethrough original price). On the Swift_ProductDetailsInfo template, we checked that product.Price.Price and product.PriceBeforeDiscount.Price have the same value. We thing that PriceBeforeDiscount should be the original price but it is not.

How could we show the PriceBeforeDiscount in the product details page?

Regards,
Tomas


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Tomas,
when you setup the Batch import of products by run a query like <GetEcomData><Products type="all /> then you will get the products
with UnitPrice without any discount in the output in the xml field ProductPrice 
so you could map this field to your new custom field called like "ItemUnitPrice" or some other Dynamicweb field in DW in the Data Integration job mappings
and then show this field value as price without any discount on the frontend.
BR, Dmitrij

Votes for this answer: 1
 
Tomas Gomez
Reply

Hi Dmitrij,

Thanks for the trick, we will use it  :-)

regards,
Tomás

 

You must be logged in to post in the forum