Version 17.2.0 just released and improved on the e-commerce module but I can’t seem to find any documentation related to this. Particularly the “Product detail view”.
Is there any updated documentation or reference materials anywhere?
After having read the documentation on the new e-commerce methods in v. 17.2, I am still a bit confused on how the new ecommerceCartUpdate() method should be used.
The ecommerceCartUpdate() method tracks the initial state of the cart. It should be called each time a session starts and only once per session. Its purpose is to restore the state of a cart that was abandoned in a previous session.
What if the cart is empty, should we still call this function with no products when the session starts?
If we call this function with no products, will this not be treated as Shopping stage = Abandoned cart?
What if the user is initially logged out, should we call this function immediately after the user logs in?
I can see that there are parts of the documentation that could be misleading without additional context. We will most likely update it soon .
If the cart is empty there is no need to send the ecommerceCartUpdate. I’d even advise against using it that way (see 2nd answer).
The cart will be treated as an abandoned cart.
For scenarios where shop cart is populated after user logs in I would send ecommerceCartUpdate immidiately after the user logs in. If user logs in and the cart stays empty then you should not send an empty ecommerceCartUpdate.