Forum Moderators: buckworks

Message Too Old, No Replies

Has anyone coded their own shopping cart?

It doesn't seem too hard...am I wrong?

         

benlieb

4:45 am on Nov 16, 2004 (gmt 0)

10+ Year Member



Just wondering what percentage of e-merchants here have coded their own shopping cart.

DenRomano

4:57 am on Nov 16, 2004 (gmt 0)

10+ Year Member



Hi,

I did.

diamondgrl

5:07 am on Nov 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did. You're right. It's not too hard.

On the other hand, when I wrote my whole order processing system, I did not make it complex enough. It handled a number of simple cases but should have been more complex. Then again, a handful of shopping carts I looked at didn't do everything I needed either. But when I wrote my own, I missed some things I wished I had thought about in advance.

So you need to sit down carefully beforehand and plot out everything in advance (including coupons, discounts, what checkout information you'll need, etc.)

benlieb

5:15 am on Nov 16, 2004 (gmt 0)

10+ Year Member



I'm thinking of doing just that. Only I don't know what to do with the info once the shopping cart has it. Could I code a script that will authenticate credit cards and interact with a bank. Or is some type of "certificate" needed for banks to deal with me? Where do I start?

I imagine I have to pass the info from the shopping cart, plus credit card info to some kind of script that will then authenticate and handle funds transfer, but how?

submitx

5:24 am on Nov 16, 2004 (gmt 0)

10+ Year Member



Well we don't use a shopping cart on our site, but have simple order form with 7 items to pick from. Then the info gets passed on to the bank for credit card processing. Your bank should tell you what fields they are looking for and how to pass it on to them with your CGI script. Most banks have their own interface to input CC info and you may have the option to sent the customer to the bank's interface to input their card info or you may grab it yourself and then forward it.

Corey Bryant

11:16 am on Nov 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We coded one for all our customers. This way if someone needs something a little specific, a lot easier to go in & change it

-Corey

raywood

3:05 pm on Nov 16, 2004 (gmt 0)

10+ Year Member



Benlieb, here's the way I do it. Keep a session level object of shopping cart contents, with add, remove, and clear cart functions available to the shopper.

Link my checkout process to the CC clearing house. Very easy. Most of them have good documentation. The clearing house does not care about the shopping cart contents. They only want the total amount of the purchase, including shipping, tax, etc.

The clearing house verifies the card and returns authorization code. My cart then puts the shopping cart contents into a database and sends an email to the site owner to notify of the purchase.

Yes, you need a security certificate for your server.

jsinger

3:54 pm on Nov 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just wondering what percentage of e-merchants here have coded their own shopping cart.

I would think about zero percent of successful small merchants have. About the same number of people who build their own hard drives or wind transformers for power supplies.

How do you justify the time it would take when there are so many other things to do to be a successful online merchant? Other than as a hobby or learning exercise, I can't see the point unless you are selling an incredibly esoteric product.

We run a very high volume online business and I consider the $50-$100 a month we pay for the cart to be an incredible bargain.

Easy_Coder

6:03 pm on Nov 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've 'built my own' it for every commerce site I've ever been involved with. You should give it a whirl.

JonR28

6:47 pm on Nov 16, 2004 (gmt 0)

10+ Year Member



I coded my own cart too. Didn't take too long at all. If you are a semi-competent programmer there is no problem.

diamondgrl

10:33 pm on Nov 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jsinger does make an excellent point. many coders will do it just because they can but it makes no sense to reinvent every wheel.

in my case, i had reasons for doing it. i didn't find a shopping cart that handled all the things i needed it to handle and since it only took a couple of intensive days to code, it seemed like less of an investment than investing time learning a suboptimal shopping cart system and then dealing with the frustrations of that.

benlieb

6:47 am on Nov 17, 2004 (gmt 0)

10+ Year Member



I find that often it is more trouble and time consuming to search for and evaluate open source software, when I could do it myself, quicker (probably) and more personalized, though perhaps not as intricate.

I really should get into the habit of checking other programs out...

jamie

8:34 am on Nov 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



for any resonable competent coder, yes it is easy, but, if you wish to connect to a payment gateway, remember that you are playing with people's money.

this means everything should be doubly redundant. think about all possible errors and how to capture them.

it's nothing more than sitting down and planning it correctly, but be warned that if you are doing it for the first time, you need to test, test, and test some more.

good luck

p.s. make it as modular as you can, so that you can re-use bits for other shops. e.g. the payment processing object is seperate from the shipping object, which is seperate from the edit cart functions, etc. my first shop tried to do everything in one class and was completely non reusable ;-)

Deab

8:36 am on Nov 17, 2004 (gmt 0)

10+ Year Member



I wrote my own, partly as a learning exercise, partly because our needs were quite specialised (at the outset anyway, moved closer to a standard merchant set up now).

I tend to be a control freak, so writing my own was the only way really, and I'm very glad I did.

Sunshyn

8:54 am on Nov 17, 2004 (gmt 0)

10+ Year Member



There are some good reasons a successful small merchant might code their own. My first cart was coded in early 1996, and there wasn't any such thing as standard shopping cart software back then. Hardly anyone had an actual shopping cart and mine was the guinea pig for the company who coded it. It was basically written around my needs and suggestions.

By the time that company closed up shop and I went looking for another cart, I had spent years developing our mailorder products around the capabilities of the site. I couldn't find anything which met every capability and would have ended up making some severe changes to existing products and our way of doing business if my friend hadn't suggested she and I write our own. It wasn't all that difficult after I got used to the idea (I hadn't done actual programming since high school unless you count HTML).

Diamondgrl's mention of having to plot everything out beforehand is not true of my own experience. Writing the basic cart and order system was a major rush job for us because we had to get it up and running before the previous host went out of business. However, I now find myself less restricted than ever. It's much easier to add this or that capability as I feel like writing it and do it the way I want. I used to have to wait around for new features and often not get what I envisioned.
Now that I think of it, it seems that vital characteristics of many businesses, such as promotions and even product offerings, may be dictated by the capabilities of it's software rather than vice versa.

plumsauce

9:17 am on Nov 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



here's the pitch that i emphasise to potential hosted cart customers:


BUY OR BUILD

are you getting in the business of renting widgets or the software business? bricks and mortar stores don't write point of sale systems, neither should an internet business.

jsinger

12:28 pm on Nov 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good point made that evaluating off the shelf carts is no small job either.

DenRomano

2:29 pm on Nov 17, 2004 (gmt 0)

10+ Year Member



I the main I did it was for the fun

PCInk

3:16 pm on Nov 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wrote mine for the flexibility given. Changes could be made quickly.

Coding them should be easy in theory, but in practice it is not: One error can mean losing sales and lots of time can pass before you notice....especially if some users can order and others can't.

minnapple

12:58 am on Nov 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have around 50k of inhouse programming in mine.
It has been in development for last 1 1/2 years.

I have taken everything I have have learned in the last 6 years and poured it into it.

We have set up imports of quark documents, connected to order processing systems, downloaded data from exiting store platforms, done custom tracking.
Each time we do something it is in our store chest.

Sometimes I am the biggest cost, I am picky.
On track to turning a real profits within the next 16 months.

It is a long term investment for me, not a quick buck scheme.

lgn1

8:03 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Back in 98, their were few options, and commericial shopping cart software was expensive.

Our shopping cart is a modified versions of Salena Sols Web store. After 6 years, it has been modified so much, it looks nothing like the original.

Having your own shopping cart software, gives you total flexibility, however if I had to do it over again in 2004, I would go with a commericial cart that met our needs. Also their are plenty to choose from these days in all price ranges.

pdivi

3:40 am on Nov 23, 2004 (gmt 0)

10+ Year Member



I have had my own (very simple) cart developed, and I have also used an inexpensive, heavily modded open source cart. Dollar for dollar, the open source cart was a FAR better investment. It's really amazing what kind of great tech. support you can get from helpful developers on message boards, and what kind of great mods. you can get for a $10 PayPal payment.

minnapple

4:32 am on Nov 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is all about what you want the cart to be in the end.

A one user solution or a platform.
Borrowed code works well for the first but not for the second.

Myself I am working on plaform end.

My intention is to sell the platform and the clients as a business in x-amount of years.

Each new client raises the value of business $3000.00 to $5000.00 depending on the average amount of custom modifications each client does yearly.

I can't sell existing modifed coded as business without complications, but a custom platform, with existing clients I can.

Databuilder

1:31 am on Nov 27, 2004 (gmt 0)

10+ Year Member



I would have to vote no on writing your own cart. Unless you really know what you are doing, it can be very difficult to write secure code. Shopping carts are subject to buffer overflows and SQL injection attacks. Even commercial carts have problems. Proceed with caution.

hfwd

4:41 am on Nov 27, 2004 (gmt 0)

10+ Year Member



I agree with Databuilder - coding your own cart is not for the fainthearted or for beginners. It's actually not easy to catch every exception & imagine all the things that can go wrong.

Even with open-source or proprietary shopping cart you'll have to spend some time & effort customizing it to your needs anyhow. At least you're not starting from scratch.

beauzero

5:12 pm on Dec 3, 2004 (gmt 0)

10+ Year Member



I would vote no if you can avoid it. I have because of a proprietary warehouse system that we had to integrate with. There are issues that a lot of people don't think about like queuing up requests in cases where linkages might be down. I would LOVE to get rid of our cart but it has paid dividends and is actually going to get better as we are looking to get as close to real time as we can with other third parties such as Amazon and Ebay. Our problem is that we have order inputs from phone (Customer Service), our own websites, and 3rd party sites like amazon/ebay. Good luck. Buy if you can. The other thing to consider is product listing cost. I have recommended to friends packages LIKE yahoo small business because they have very few SKUs and the listing costs are low per month. Whereas we have 48k SKUs that only have about 10% that move rapidly. For us the monthly listing fees would be cost prohibitive.