jakebur01 Posted May 7, 2007 Share Posted May 7, 2007 What are some good resources to turn to when building your own shopping cart? I've never built a shopping basket before, I am going to build one this summer. What are some problems related to building your own shopping cart? Thank you, Jake Quote Link to comment https://forums.phpfreaks.com/topic/50303-shopping-cart-information/ Share on other sites More sharing options...
JakeTheSnake3.0 Posted May 7, 2007 Share Posted May 7, 2007 I just made my own a little while ago...all you really need to know is how to make classes, and how to work with either cookies or session variables. I made my own shopping cart class and set a session variable to be an instance of that class. You should set certain variables like 'name' and 'unitPrice' for each item in the cart...you can make them as part of an object or as an array....ex) $item['name'] or $item->name .... Just some starter points Look at php.net's manual for creating classes...and pretty much most other questions regarding php. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/50303-shopping-cart-information/#findComment-246982 Share on other sites More sharing options...
boo_lolly Posted May 7, 2007 Share Posted May 7, 2007 i build a very small/efficient cart handler. http://www.phpfreaks.com/forums/index.php/topic,134201.0.html Quote Link to comment https://forums.phpfreaks.com/topic/50303-shopping-cart-information/#findComment-247012 Share on other sites More sharing options...
DanDaBeginner Posted May 7, 2007 Share Posted May 7, 2007 eirther youre using a third party or not for the payments, you must consider the security of youre site... IMO - the best to use is session, never to use cookies when it comes to shopping cart or anything that may involve security risk... Quote Link to comment https://forums.phpfreaks.com/topic/50303-shopping-cart-information/#findComment-247131 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.