So I figured I could add some fields to the customers_basket table, no big deal. Just put in a few times it checks the Product ID in the Shopping Cart and checkout and makes sure it calculates the right price.
Now I'm seeing that custom carts are only stored in the customers_basket table if the customer is logged in. If they aren't, it gets stored in the sessions table.
I guess I'm looking for some help figuring out how to understand something like:
sessiontoken
|
s:32:"af44a9b5bd9ae9656c83e972aee686a4";
cart|O:12:"shoppingCart":4:{
s:8:"contents";
a:0:{}s:5:"total";
i:0;
s:6:"weight";
i:0;
s:12:"content_type";
b:0;
}
language|s:7:"english";
languages_id|s:1:"1";
currency|s:3:"USD";
navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:9:"index.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:1:{s:5:"cPath";s:5:"46_59";}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}
or
sessiontoken|s:32:"a4c72d3b1b0283fb84ad042500d46e1e";cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s:5:"total";i:0;s:6:"weight";i:0;s:6:"cartID";N;s:12:"content_type";b:0;}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"USD";navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:16:"product_info.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:1:{s:11:"products_id";s:3:"819";}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}
and what files interact with these session.value fields, and I'll have to add the info into there too.
P.S. I'm not too proud to use a contribution, if you guys know of any out there that would do something like this.
what I have so far
http://tbolt.is-a-ge...&products_id=31
OR!!!, is there a way to completely forget storing the cart in the sessions and just do it in the table?






Find content
Male
