Paypal + Add to cart.

Permabanned
Joined
3 Aug 2009
Posts
1,397
Location
Manchester
Hi guys.

I'm setting up a small website for my uncles business, and he wants to list the items on his website so that people can buy them through PayPal.

On other websites, I've seem the item description for example, and then an 'add to cart' button that takes you to PayPal.

I'm just wondering how I incorporate this PayPal feature to this website? He already has a PayPal account set up etc.

Thanks a lot.
 
I've just looked at PayPal and it says they have pre-made buttons so you don't have to mess about with HTML.

How do these pre-made buttons work though? How does it know to direct payments to the certain account you've set?

Cheers
 
I've just looked at PayPal and it says they have pre-made buttons so you don't have to mess about with HTML.

How do these pre-made buttons work though? How does it know to direct payments to the certain account you've set?

Cheers

You'll have to look at some HTML code at some point, to paste the button into your webpage - but that's it really.

They use hidden form values E.g.

<input type="hidden" name="business" value="[email protected]" />

(there are loads of values - see the paypal docs for full list)

However, PayPal have recently made it possible to encypt all of these form values - but you need to make these buttons from your admin panel and then paste the html code into your webpage.
 
You'll have to look at some HTML code at some point, to paste the button into your webpage - but that's it really.

They use hidden form values E.g.

<input type="hidden" name="business" value="[email protected]" />

(there are loads of values - see the paypal docs for full list)

However, PayPal have recently made it possible to encypt all of these form values - but you need to make these buttons from your admin panel and then paste the html code into your webpage.

Sounds simple enough. Cheers mate.
 
If memory serves theres hidden form values for product/price etc. Have you had a look at the paypal button wizard? It's easy to use and should have all the answers (one thing paypal do have is good documentation), docs here.
 
Are you using a CMS at all? Plenty of pre-made components that allow you to build a catalog of items and automatically incorporates a shopping cart, checkout with paypal etc
 
I'm having issues doing this. I'm just using an easy website builder - Moonfruit, but they do allow you to use HTML and they have a PayPal shopping widget of their own but I can't seem to get it working.

I went to PayPal and generated the 'add to cart' button I needed, but when I past it as HTML, it just appears as a rectangle box, but when I look at the site live, it appears at the very bottom of the website.

What am I doing wrong?

Cheers
 
Does the button work when it's viewed live? (regardless of where it is sitting on the page). There's a chance that moonfruit is breaking it I guess. Do you have a url?
 
Does the button work when it's viewed live? (regardless of where it is sitting on the page). There's a chance that moonfruit is breaking it I guess. Do you have a url?

Sorted it now. I was editing the site with Firefox, but when I switched to I.E, HTML works fine.
 
Another issue...

If the site is viewed in Firefox, all the 'add to cart' buttons are messed up.

Is this a firefox issue, as it can be viewed fine in I.E.
 
Technically it's actually broken in IE, Firefox sticks to HTML standards, IE doesn't; therefore although it appears fine it's actually 'wrong'.
 
I'm having issues doing this. I'm just using an easy website builder - Moonfruit, but they do allow you to use HTML and they have a PayPal shopping widget of their own but I can't seem to get it working.

I went to PayPal and generated the 'add to cart' button I needed, but when I past it as HTML, it just appears as a rectangle box, but when I look at the site live, it appears at the very bottom of the website.

What am I doing wrong?

Cheers


You could try putting the form into a div tag, that you can position wherever....
 
I'm having issues doing this. I'm just using an easy website builder - Moonfruit, but they do allow you to use HTML and they have a PayPal shopping widget of their own but I can't seem to get it working.

I went to PayPal and generated the 'add to cart' button I needed, but when I past it as HTML, it just appears as a rectangle box, but when I look at the site live, it appears at the very bottom of the website.

What am I doing wrong?

Cheers


Are you encrypting the button code or leaving it as plain text? If you're encrpyting you buitton code and pasting into an editor, the editor may get confused as it's expecting certain form values, not a huge block encrypted text :)
 
Back
Top Bottom