FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


shopping cart





geekbackpacker
SlowWalkere wrote:
Presumably, you have the items from your store set up in the database with some kind of identifier/key. All of the pricing and descriptive information should be stored there, so your shopping cart will just need to store the item id for reference.

Then, you should decide how long you want the shopping cart to last. If you use sessions, as previously suggested, it will only last until the browser is closed. You might also want to have a longer-term cart, so that if the user is interrupted for some reason the cart will remain full for a few days.

Here are two possible ways to do this. One is to use cookies with an expiration time of a few days, instead of sessions. Alternatively, you could store all of the information in its own tables. This second option would be particularly good if the users have already logged in. This way, their cart is available from any computer that they log into.

The format of the cart table or array would be pretty simple. One field would hold the user's id (unnecessary if you're just using cookies or sessions, but necessary if you're using a database table). The second field would contain the item id. You could then include a third field for quantity, or just duplicate quantities in the table rows. If you duplicate the quantities, you would just need to use GROUPBY and COUNT to get the proper quantity for each item.

If you join the cart table to the item catalogue table, you'll get the prices. Then you can add everything up, get a sub-total, put in whatever formula you want for shipping, and voila you've got a total. The harder part, methinks, is implementing that with a payment system that is secure.

Good luck,
- Walkere
can anyone explain by photo and source code



kv wrote:
manum wrote:
Hi

Try to work your way around with paypals IPN scripts because they are a good way to process payments online.... for FREE!!!



No. They don't process payments for free. If you have a personal account, paypal allows to receive payments ONLY through paypal transfer. If you want to process payment online, there is a fixed charge + percentage charges (I guess it is around 30 cents + 3%)
how to limit? photo please
zacky
If your into concept and idea of Shopping Cart or eCommerce site, I bet you should check Magento or openCart work flow or any other open source eCommerce platform.

If your into code, please use paste bin and paste there your code and put comments where you having some problems mainly because what you are asking to do is kind a hard to give.

It would be best also if you could given helping materials and resources for your peers to use to help you on your problems.

Best Regards!
Related topics
shopping cart!
Free PHP shopping cart needed
Is anyone running free shopping cart software on frih?
Shopping Cart
shopping cart for digital goods...
pictures
web shopping cart
Guy Hit with Shopping Cart at 70mph
HELP with a SHOPPING CART!!
Shopping Cart....
Building shopping cart!
how to build a shopping cart....
Need shopping cart to provide item personalization to custme
Shopping Cart
Can I install a PHP shopping cart?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.