- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 10:25 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 11:03 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 10:48 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 10:52 PM
so. it is not every time whenever a request is created by that user? is it only one record for the first time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 10:53 PM
Yes the first time you added something to a cart, it gets created in the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 10:57 PM
if i raise multiple request?
will the same record gets replaced with the information in sc_cart in the same record?