Developer forum

Forum » Integration » Live Integration - Live Prices issue on variants

Live Integration - Live Prices issue on variants

Ricardo Pereira
Ricardo Pereira
Reply

Hi,

We have updated the Dynamicweb.Ecommerce.DynamicwebLiveIntegration package to version 6.0.11 due the download PDF issue on integration customer center. However, we are now facing an issue with the Live Prices.

On this solution we are using "combined products as a family"- each variant has it's own product number, and Live Integration is using the Product Number to calculate the price.
After the update, all variants (which are not master variants) show the price from the database instead of the live price. The master variant is being displayed correctly.

Checking the Live Integration log file, prices are coming correctly from BC.

Has anyone run into this issue?


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Ricardo,
you need to enable the Live integration setting "Include variants in the product information request".
Kind regards, Dmitrij

 
Ricardo Pereira
Ricardo Pereira
Reply

Hi Dmitriy,

Thank you for the quick answer.
That worked for the product list and list of variants on the product detail page, however, on the product details page, if I'm looking a specific variant, the price shown is the price from the database.
Do you have any idea why?

UPDATE:
On the product detail page, looks like some times show the live price and other show the DB price.

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Ricardo,
maybe it depends on how your page works. Is it some sort of searching functionality on the page? So it can not make a requests to the ERP due to that.
Have you tried different caching settings in the Live integration Products section: Session or Page?
Have you checked the Live integration log file: maybe sometimes ERP is not responding?
BR, Dmitrij

 
Ricardo Pereira
Ricardo Pereira
Reply

Hi Dmitriy,

I could find the following error in the log file:

DebugInfo: Response GetProductsInfo received: 'An error occurred processing the request. Exception: The length of the string is 16, but it must be less than or equal to 10 characters. Value: VARGRP76_V060262'.

Do you have an idea how can we fix that?

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

Hi Ricardo,
the family products are the problem since the Live integration does not yet support them.
So it sends the family product VariantId to the ERP and that probably should not be done since the family variant id has no relation to the ERP variant id,
so it should not be sent.
But when it is sent the filter on variants in the NAV fails since it does not supports "variant no" being more than 10 chars length.
Maybe as a temporary solution you can write the subscriber to Notifications.ProductInfo.OnBeforeGenerateProductInfoXml
and update "products" VariantId field with empty value where VariantId is more than 10 chars length.
BR, Dmitrij

Votes for this answer: 1
 
Ricardo Pereira
Ricardo Pereira
Reply

Thanks, Dmitriy, that works :)

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Ricardo,
that issue is now fixed in the new Live integration version 6.0.12.
BR, Dmitrij

 

You must be logged in to post in the forum