Developer forum

Forum » Dynamicweb 10 » Live Price missing on checkout

Live Price missing on checkout

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

We are running into an odd situation, we have live prices lazy loaded and during checkout we only see prices updated in cart when we use getproductinfo=true in request - is this the expected behavior? Would make sense to ignore the lazy load flag if there is a shopping cart app in current page?

https://app.screencast.com/CP3MVQ32mtUWK

LI version Live integration 10.4.31.
BR Mario


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Mario,
can not get it reproduced. Could you check the log file when this happens? Maybe there is no valid response from the ERP.
Also the solution has several custom dlls and subscribers, can you check without them if it works?
BR, Dmitrij

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Dmitrij,

I removed the custom dlls that could be impacting this but issue persists. Without getproductinfo=true there is only LiveIntegration template extender in ExecutationTable.

https://app.screencast.com/wZ34yZWIy6IVZ

 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Mario,
when Lazy loading option is ON then you need to pass the getproductinfo=true in the request in order to trigger the Live prices.
That product has 0 price in the Ecom so that is why it recalculates the cart price using the database price.
In the Live integration settings you have not selected the Cart Communication type (it is set to None in your setup) so it gets the prices from the database and is not triggering the Live integration to calculate the cart.
BR, Dmitrij

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Dmitrij,

I understand that setup. We don't need to have live cart as the we only need live price. I thought even with lazy load ON it would be treated it as OFF when shopping cart app was present in page, since we need the live price to be used. If this is not the case, that means we need to always have getproductinfo=true on every cart page, mini cart, checkout between steps. How would work on notification emails?

Any thoughts on this? I tried to find if we could override the property somehow but it seems that is not possible.

BR Mario
 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Mario,
it is not clear what functionality you need. It seems you can simply use Live prices without Lazy loading then.
Do you need to switch on/off the Live prices for some conditions?
BR, Dmitrij

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Dmitrij,

We usually avoid pricing on PLPs since some ERPs may take some time to reply. And then only use webapi calls to actually display the prices in Swift PDP component.
Then we need live prices in checkout.

BR, Mario

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Dmitriy,

 

I guess a different way to put it is, if you have Live Product info (regardless of it being lazy loaded or not), in the cart you always want to have the live price.

 

So having to force the templates to always trigger the lazy load behavior when adding to cart (and any cart events), seems like overhead.

 

Does that make sense?

Nuno Aguiar

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Nuno and Mario, 
the problem is that we don't have a feature like that for now in the Live integration. So the only solution for now is supplying the getproductinfo=true in the templates/requests.
Maybe you can look into the PLP page setup and remove the Price* and Stock* properties(tags) from the App settings?



Then the Live integration will not be triggered on the PLP and you can use just enable Live prices option and don't use the Lazy Load option at all in the Live integration settings.

BR, Dmitrij

 

You must be logged in to post in the forum