Paypal button in iWeb site

any idea how to introduce a PayPal payment button into an iWeb site. Paypal give a section of HTML but i don't know how to apply it to the site i am creating for commercial use.

G4 Powermac & G4 Powerbook, Mac OS X (10.3.9)

Posted on Feb 16, 2006 9:32 AM

Reply
60 replies

Mar 19, 2006 11:43 AM in response to blueform

No need to SHOUT!

I'm still not sure if you're doing it right.

What do you mean, pasted in the box small, but very long?

In iWeb, you don't paste any HTML code in at all.

All you do in iWeb is make the text box, then type some unique text in, like PayPalCode. This just aids finding it later when you come to find and replace with the HTML code.

Then publish your site.

Open the relevant HTML page in Textedit. (NB: make sure in Textedit that 'ignore rich text commands in HTML files' is checked, in Open and Save preferences.)

Now use Textedit to find the unique text you typed, PayPalCode as above, then replace it with the HTML code that you code from paypal.

Then save this edited file and upload it with the rest.

Please remember that you need to do this every time you republish the site.

Let me know if you're still having trouble!

Michael
http://www.rowan-cottage.co.uk

Mar 19, 2006 12:43 PM in response to mwong

Okay I wasn't doing it right,sorry I didn't mean to shout, just frustrated.
So I made a small text box, typed in PAYPAL ,Published.
What is the relevant HTML page? is it my web page or the paypal HMTL code page. And how do I find the relevant page?
How does textedit find the unique text I typed?
And how do I replace it and upload?
Sorry for asking so much, but if you help me on this I am sure it will help a lot of people trying to do the same thing thanks!

Imac 5 Mac OS X (10.4.3)

Mar 19, 2006 1:02 PM in response to blueform

I don't have a .mac account so I publish to a folder. Perhaps someone can explain how they do it with publishing to .mac.

Anyway, if you've published to a folder, go to that folder, find the relevant HTML page. It will be called xxxx.html, where xxxx is the page name of the page in iWeb where you put the text box with PAYPAL in it.

Open this file in textedit.

You will see a load of HTML text. If you don't and see what looks like a webpage, go to Textedit > Preferences > Open and Save and check the box 'ignore rich text commands in HTML files'. Now re-open the file and you should see the HTML text.

In Textedit, go to Edit > Find > Find.

Type PAYPAL into the 'Find' box (the text you typed into the text box).
Paste the code you got from Paypal into the 'Replace with' box.
Untick the box 'ignore case'. Click 'Replace All'

(By the way, hopefully the word PAYPAL is unique on your page, and you don't have any other text on the page with the words PAYPAL. That's why I said use something like PayPalCode or PaypalHTML, as you're unlikely to use this combination of letters and words in normal text)

Save the file.

You then need to upload your site to your server using an FTP client. There are plenty out there. Go to www.versiontracker.com/macosx and type ftp in the search box. You should find one that suits you.

There you go. You should then have a page that looks like this:

http://www.rowan-cottage.co.uk/Site/PayPal.html

I hope you can do this now.

Thanks

Michael
http://www.rowan-cottage.co.uk

Mar 20, 2006 8:27 PM in response to Lamont Dennis

There's an easier way. You can do this entirely in iWeb without having to change your code each time your publish your page. Thanks to an unnamed rep at PayPal who took the time to clear this up. I tried it tonight and it works fine.

To see it in action:

http://web.mac.com/jkevinwolfe/iWeb/PixTricks/Blog/Blog.html

The "Buy eBook" button is connected to PayPal.


Here's how you do it:

1. Go to Paypal's site and log in.

2. Click on the "Merchant Tools" tab.

3. Click on "Buy Now Buttons".

4. Enter the details of your sale.

5. Under "Choose a button to copy to your Web Site (optional)" leave the top "Buy Now" button checked.

6. For "Security Settings" Click "No" to encryption.

7. Click the "Create Button Now" button.

8. Copy all the text from the "Link for Emails" box.

9. Open iWeb.

10. Create a shape or text box with "Buy" (or whatever) in it.

11. Open the Inspector.

12. Click on the Links tab.

13. Check "Enable as a hyperlink".

14. Set "Link To" to "External Page"

15. In the URL box, paste the text you copied from PayPal.

When you publish your site the text field or button will now be follow normal paypal payment procedure. These instructions should work similarly for donation buttons.

Note: If you have Encrypted Website Payments turned on, you'll need to turn them off. Click My Account/Profile/Website Payment Preferences to find it. Safari seems to have a problem showing the Profile button. If it's invisible, drag your mouse over the top of the "B" in "Business Account Overview" and click.

Kevin

Mar 20, 2006 8:41 PM in response to Kevin Wolfe3

Donations instructions:

1. Go to Paypal's site and log in.

2. Click on the "Merchant Tools" tab.

3. Click on "Donations".

4. Enter the details of your donation.

5. Under "Choose a donation button to copy to your Web Site (optional)" leave the top "Make a Donation" button checked.

6. For "Security Settings" Click "No" to encryption.

7. Click the "Create Button Now" button.

8. Copy all the text in the "Link for Emails" box.

9. Open iWeb.

10. Create a shape or text box with "Donate" (or whatever) in it.

11. Open the Inspector.

12. Click on the Links tab.

13. Check "Enable as a hyperlink".

14. Set "Link To" to "External Page".

15. In the URL box paste the text you copied from PayPal.

Mar 22, 2006 12:06 PM in response to John Neff1

' Continue Shopping' will appear if you use the ' Shopping Cart' option when making your buttons.

It's the same as everyone is explaining above except in PayPal you select ' Shopping Cart' instead of ' Buy Now Buttons'.

This will give you 2 boxes with HTML Code in them. One is the Code for the ' Buy Now' button and the other is the Code for the ' View Shopping Cart' button.

I added the Buy Now Buttons under each of my individual items and also a View Shopping Cart Button on the page. Once they click Buy Now and go to the PayPal site... it will show a Shopping Cart (where customers can update the quantities) & a Continue Shopping Button to return them to your Site to add more Items.

My Site isn't LIVE yet but so far it appears to be working.
-You will have to test it from another PayPal account because PayPal will not allow you to purchase from/send money to yourself.

Mar 22, 2006 12:32 PM in response to Kevin Wolfe3

oh yeah... good idea Kevin.
I was just using my Gfriends account to check it out but I was working from my site being published to a folder. I know she doesn't want my logging into her PayPal all the time to test it so I'll be using your work around a lot.

--It would be cool if iWeb could do a thing the way the have in Inspector for Link to URL... some type of box/area that you could Enable HTML.

Then we could just define the Area, Enable HTML, and paste in the Code from PayPal (or any other CODE). Then we wouldn't have to worry about remembering to go into the HTML file everytime we published. It would just publish inside the site and be ready to roll.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Paypal button in iWeb site

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.