homepage Welcome to WebmasterWorld Guest from 54.227.5.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / WebmasterWorld / Ecommerce
Forum Library, Charter, Moderators: buckworks

Ecommerce Forum

    
PHP / Mysql Ecommerce Shopping Cart
Need help writing one...
Angelis




msg:631978
 11:44 am on Oct 25, 2005 (gmt 0)

Hi a client is wanting a shopping cart producing for his site and needs one built rather than an off the shelf piece of software.

I have never written a shopping cart script before so without wanting to spend hours stabbing in the dark pulling my hair out trying to figure it out I was wondering if anyone knew of some step by step help site or document that would give me the basic concept of how a cart works so I can write one.

Obviously URL's are not permitted here so message me them if you have them, if anyone has a simple to use script they can post excetpts from that would be usful also.

Many thanks in advance....

 

Aircut




msg:631979
 12:05 pm on Oct 25, 2005 (gmt 0)

writing a good shopping cart requires both good understanding of ecommerce and good understanding of php.

assuming you have both [otherwise pay someone to do it for you!], you might want to

1. separate design from code, use templates

2. keep a modular structure, easy adding and modifying modules

3. don't do to your user what you don't like others to do to you

and i could go on and on

henry0




msg:631980
 12:05 pm on Oct 25, 2005 (gmt 0)

You could D-load a bunch of (Free) scripts
and do a "Post Mortem" on them
Since you never wrote one of your own then you need to learn how it works.
Please, do not be offended by the following:
You will need to be MySQL and PHP plenty fluent :)

stevenmusumeche




msg:631981
 4:50 pm on Oct 25, 2005 (gmt 0)

Writing a custom shopping cart with no experience in the ecommerce area is a (very) bad idea. Either subcontract it out or convince your client to go with an OTS solution. It's actually quite complicated and requires nearly continuous development to maximize conversion and usability.

Angelis




msg:631982
 6:39 pm on Oct 25, 2005 (gmt 0)

Of this im aware thank you. The port mortem idea was one I was going to stay away from but writing the scripts itself isnt too much of a problem. I could probably sit down for a week and have a working beta.

I suppose my question should really of been: what problems am I likely to run into when writing one...

Security issues etc...

Myself and the client want one I write for the security reason as it means I can patch it up based on my server config so there are no holes in it...

lorax




msg:631983
 7:15 pm on Oct 25, 2005 (gmt 0)

The security issues will depend upon your setup. There are different exploits for the different levels of PHP.

Performance issues will be another concern. If your store gets busy, will it handle the traffic? Use OOP where appropriate and optimize your MySQL calls (or whatever db you're going to use).

TEST TEST TEST TEST TEST TEST ... benchmark the heck out of your setup and try all of the know hacks you can locate.

Angelis




msg:631984
 7:52 am on Oct 26, 2005 (gmt 0)

Thanks

RailMan




msg:631985
 4:17 pm on Oct 26, 2005 (gmt 0)

why reinvent the wheel?
so many shopping carts out there, but everyone wants to invent their own ..........

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Ecommerce
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved