Developer forum

Forum » Ecommerce - Standard features » Save user data in the cart

Save user data in the cart

George Nelzo Pereira
Reply

Hi...

It's possible to save user data in the cart automatically when the user is logged and they just add the product to basket?
Today dw are saving automatically when the user add and go to the cart to see the cart...


Replies

 
Nicolai Høeg Pedersen
Reply

Not sure I understand your question.

You can enable the "Apply user details to order" option on the cart settings:

http://manual.dynamicweb-cms.com/Default.aspx?ID=7190

 
George Nelzo Pereira
Reply

Hi Nicolai, thanks for your reply...
If I make login then go to the products and just add one product to cart, but didn't go to the cart (just add and continuous in the products) DW are not saving the User Data, DW are saving just if the client go to the cart...

After the cart we have the user data (I'm following this rules), but i need to save the user data when the cart are generated (when the client add the products without going to the cart)

 
Nicolai Høeg Pedersen
Reply

Well, that is not possible out of the box - it is the cart module on the paragraph that takes care of that operation. Then you can do something that will load the cart in Ajax/iframe that takes care of it, or create a notification subscriber (orderlineadded) that handles this for you.

 
George Nelzo Pereira
Reply

Hi...

Thanks Nicolai for your reply.

I create one new paragraph in the same page to the products and put the cart module without any templates (cart steps). Now is saving the user data when the client just add the products to the basket (they need to be logged).

Thats can be a good feature to use in B2B shops.

 

You must be logged in to post in the forum