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? 

1 ACCEPTED SOLUTION

sc_cart will be only a single entry and it just stores the owner name of the cart ie the requester. Every time you add an item to cart, a new entry is added in the sc_cart_item. Once you order or submit the cart, the entry added in the cart is removed from the sc_cart_item table and is converted to a request and sc_req_item entries. So sc_cart always remains the same but requests get added or removed from the sc_cart_item table.

 

View solution in original post

38 REPLIES 38

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?