will a record insert in sc_cart

Deepthi13
Tera Expert

hi Team,

i have a order guide in mobile view. when ever I request a new thing in order guide will it insert a record in sc_cart every time? 

Alikutty A
Tera Sage

Hello Deepthi,

sc_cart is the table which maintains your cart information. Every user will have an entry in the sc_cart table if he has added to the cart at least once. It stores details like requested for, shipping address etc. It has a related list (sc_cart_item ) which contains all the items which are added to the cart. Once the items are submitted, the sc_cart_item gets empty but sc_cart entry still stays for a user and is created at the first insert.

Thanks

so. it is not every time whenever a request is created by that user? is it only one record for the first time? 

 

Yes the first time you added something to a cart, it gets created in the table.

if i raise multiple request? 

will the same record gets replaced with the information in sc_cart in the same record?