Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

What's a fast way to add a shopping cart to my site?

Dave, I have a few different books and audio CDs I'd like to sell and am wondering if you can recommend a quick and fast way for me to add some sort of an online store on my Web site so it's "commerce enabled", even a rudimentary one?


Dave's Answer:

I've been exploring different online options since my friend James Armstrong and I created our own hosted ecommerce system almost a decade ago while running The Internet Mall. At this point, my recommendation would be for you to sign up for Paypal and use their shopping cart tool.

Paypal isn't ideal because of both the transaction fee percentage, which is higher than what you might get from your local business bank and because if your customers have a Paypal account but want to pay for your particular items with a credit card, they can't do so.

Nonetheless, using their tools, you could have your store online within an hour or two at most, and there'd be no monthly minimum, no maintenance fees, nothing. Just a slice of the transaction pie.

The very first step to get started is to Sign Up for a Paypal Merchant Account. (disclosure: I make a tiny commission if you click on that link and sign up rather than just going to the site directly. Thanks!)

Once you're signed up, go to the Merchant area, then click on Shopping Cart. It's a bit confusing, but you can specify state sales tax, different methods of calculating shipping (and remember that you should take into account postage, packaging costs, and your time), and various other bits and pieces.

When you're done, you end up with 'add to cart' code that looks like this:

<form target="paypal" method="post"
  action="https://www.paypal.com/cgi-bin/webscr">
<input type="image"
  src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif"
  border="0" name="submit"
  alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="bizname">
<input type="hidden" name="item_name" value="sample item">
<input type="hidden" name="item_number" value="I123">
<input type="hidden" name="amount" value="24.99">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</form>

Not too bad if you're already at least moderately familiar with HTML. Once you have the first button working the way you want, then you only need to tweak the three items show in bold above to create a new button for a new item, which means you should be able to whip out dozens of 'add to cart' buttons in no time (or even automate the entire process)

The only other button needed is a 'view cart' button, and that's always the exact same code whereever it appears on your site:

<form target="paypal" method="post"
  action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="bizname">
<input type="image"
src="https://www.paypal.com/en_US/i/btn/view_cart_02.gif" border="0"
name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>

I think that'll get you going in no time. When you do get your store online, why not come back here and give us a link so we can check it out?



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Dave,

Just a general comment. PayPal no longer requires that a user have a PayPal account before they can make a payment credit card or other wise.

I agree with you on recommend PayPal just because it is so easy.

Also if your going to set up your own shopping cart and merchant payment option then you have the added problem of security. The cost of a even a shared certifite to make a transaction safe is really a hidden cost to use your own merchant account. By using PayPal you solve that problems as well. Also the minimum charges of most merchant accounts can add up fast.

Good luck with that on line site.
Frank

PS Great job Dave enjoy your info and help greatly.

Posted by: Frank Woodman Jr at April 20, 2005 8:13 AM

"Just a general comment. PayPal no longer requires that a user have a PayPal account before they can make a payment credit card or other wise."

Actually, here's where that becomes a problem: if you already have a Paypal account associated with your email address and you want to pay for something through Paypal via credit card, you need to either use a different email address or you'll find that Paypal complains that you already have an account and need to sign in. Sign in, and you can no longer specify that the specific transaction should occur via credit card, it instead just automatically goes against your existing Paypal balance.

Posted by: Dave Taylor at April 20, 2005 8:20 PM

Ola Dave,
thank you for your instructions on how to set-up Paypal on myspace account. I'm trying to set-up a store to sell, and this info was key to sell relaxation music and soaking music for www.aquadio.com on http://www.myspace.com/aquadiosteven

-steven

Posted by: Steven Burgess at January 27, 2007 8:33 AM

I do not want to write separate button codes for each item,I want to customize a single button so that to give item_name and item_code values from Database.

Posted by: asim at July 21, 2007 8:43 AM

One easy way to add paypal shopping cart onto your website is to use 3d party shopping cart software, that automatically generates add to cart buttons based on your product entries in the database. Because shopping carts, like this one http://www.ShoppingCart.org automatically updates your online Paypal store every time you update your database, you have to do very minimal maintenance.

Regards,
Jim

Posted by: Jim Arias at December 2, 2007 10:42 PM

I need to know how to edit the shipping amounts on the pay pal add to cart . the editing i need to do is the shopping cart let me use a % for shipping or a flat rate but what i need is to allow customers to add the amount of shipping i tell them because my supplier has way to many different shipping zones in the usa and a flat rate or % depending on the amount of your purchase so again need to know how to edit the hmtl code it the add to cart button to allow costumers to add shipping cost manually ..

Posted by: Alex at February 11, 2008 6:59 PM

Ok, I seen someones page on myspace that was selling items they made and had (add to cart) buttons and paypal logo. I currently use paypal for my customers so I'm wanting to know how I can do this to my page also along with the cart buttons. I don't have a website yet so I'm wanting to try it this way first. Can I do this and how? Thank you in advance for all your help:)

Posted by: Ginger Newsome at March 11, 2008 12:13 AM

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]