Developer forum

Forum » Ecommerce - Standard features » RE: Product Stock tag not updating

RE: Product Stock tag not updating

Mario Santos
Reply

Hi,

 

On the project that I'm working now, the orderline tag Ecom:Product.Stock is not being updated when another order is completed, although the DB value is changed.

I've tried the following:

  • Add a product to cart with a logged user;
  • Change quantity, enter checkout and logout:
  • Add the same product without an user logged in;
  • Change quantity and complete checkout.
  • Login with the previous user;
  • The tag Ecom:Product.Stock has the same value even if I update the orderline with a new quantity.

http://screencast.com/t/EjPAJiG7

Does anyone has the same issue?

 

Thank you,

Mário


Replies

 
Oleg Rodionov
Reply

Hi Mário,

Yep, the issue is reproduced in fact. Currently it can be fixed via set 'Recalculate a user's cart when the user logs in' setting off in MC-Ecommerce-AC-Shopping cart. But I suppose that the tag should reflect actual product stock even if the setting is disabled, so new TFS 25528 has been submitted to fix the bug. Thanks for the observation and exact scenario.

BR, Oleg QA

 
Mario Santos
Reply

Hi Oleg,

 

Is the TFS 25528 fixed? I searched on Bug fixes and Known bugs sections at doc.dynamicweb but didn't found it.

 

Thanks, Mário

 
Nicolai Pedersen
Reply

Hi Mario

The bug was rejected because it is related to the missing option "Recalculate a user's cart when the user logs in" that is not set.

In DW9 that setting is gone and behavior is default.

Sorry you did not get a response on this.

BR Nicolai

 
Mario Santos
Reply

Hi Nicolai,

I looked at this again, I am experiencing the same reported before with the "Recalculate a user's cart when the user logs in" set or not.

Could you please check it?

https://www.screencast.com/t/HdslEBPMfyP

DW: 8.8.1.30

Thank you in advance, Mário

 

 
Nicolai Pedersen
Reply

I've asked QA to take a look at this.

BR Nicolai

 
Oleg Rodionov
Reply

Hi 

Mário,

I've rechecked the issue on environment based on 8.8.1.32 with a product's variant combination (I see you use that in your video but not entire product as I used before) and have correct results when Ecom:Product.Stock tags is taken within OrderLines loop as well as via Ecom:VariantCombination.Product.Stock tag within VariantCombinations sub-loop.

BR, Oleg QA  

 
Mario Santos
Reply

Hi Oleg,

We recently upgrade the solution to 8.9.1.10 and I tested this again. It seems to be working when we are not using Order Contexts.

Here is the scenario, the solution has 2 websites:

  • Website A uses the "default" cart (no Order Context associated)
    • The cart is updated when user logs in (as you said on previous comment)
  • Website B uses 2 order contexts:
    • The carts are not updated when user logs in

Can you confirm, please?

BR, Mário

 
Mario Santos
Reply

bump

 
Oleg Rodionov
Reply

HI Mario,

Yes, I was able to catch the bug using extra conditions pointed above, new TFS-31882 has been created, will be fixed on nearest hotfix/release of DW, thanks and sorry for delayed reply.

BR, Oleg QA 

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Mario

The problem TFS#31882 "Product Stock tag not updating in cart uses context" has now been fixed in 9.3+ versions and in 8.9.1.13

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum