PDA

View Full Version : BB Code Enhancements - Add PayPal Buy Now Button


rpainter
09-12-2007, 10:00 PM
I made this BB Code for my site, because several people sell stuff on the site, and I wanted to make it easy for my users to get paid.

This will add a Buy Now button to the post.

Go to Add Custom BB Codes-->Add New BB Code

Details:

Title: PayPal Buy Now Button
Tag: paypal
Replacement: <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business={option}&item_name=SCBBQTalk%2ecom%20Buy%20Now&buyer_credit_promo_code=&buyer_credit_product_category=&buyer_credit_shipping_method=&buyer_credit_user_address_change=&amount={param}&no_shipping=1&no_note=1&currency_code=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8"><img src="https://www.paypal.com/en_US/i/btn/btn_buynow_SM.gif"></a>
Make sure you change the code in RED to whatever you want the Item Name to be (%20 is a space, %2e is a . (dot)).

Example: 5.00
Description: Adds a PayPal Button to posts
Use {option}: Yes
Button Image: If you want to put a button on the Editor Toolbar, you can use this button image I created. Just upload to your server, and put the path to the image in the box.
69765

The syntax for this Code is as follows:Cost

Evolution06
09-13-2007, 06:14 PM
Thanks for this! It is what I have needed couldn't seem to get the code for the button to direct off the site but with this tutorial it works now!

rpainter
09-13-2007, 06:16 PM
Cool. Glad it helped.

steveninstl
09-13-2007, 06:21 PM
This looks great.

This is what I am looking for:

Once the buyer "buys-it-now", that the item they bought can be downloaded to their pc or a handheld device (blackberry).

Is there any way to code it so that once the buyer pays for the item that what they bought can be downloaded? I do have code that will take them to a seperate HTM website, but I want an instant scenerio.

Example:

Buyer selects an item to purchase for download
They click the buy it now, go to paypal..complete the purchase
once completed the item purchased pops up for download.

Let me know if it can be done.

Thanks!

rpainter
09-13-2007, 07:25 PM
This looks great.

This is what I am looking for:

Once the buyer "buys-it-now", that the item they bought can be downloaded to their pc or a handheld device (blackberry).

Is there any way to code it so that once the buyer pays for the item that what they bought can be downloaded? I do have code that will take them to a seperate HTM website, but I want an instant scenerio.

Example:

Buyer selects an item to purchase for download
They click the buy it now, go to paypal..complete the purchase
once completed the item purchased pops up for download.

Let me know if it can be done.

Thanks!
I think that is outside the realm of this MOD. For instant download through PayPal, you would need some kind of 3rd party script.

momo2
09-15-2007, 02:57 AM
this can be worked as donating also ??

rpainter
09-19-2007, 11:10 AM
this can be worked as donating also ??

I guess it could be, but there are much better donation MODs out there.

vividbreeze
12-22-2008, 08:28 PM
I get this error: Data does not match input character set or default encoding. For more information, please contact the merchant.

what am I doing wrong?

eatworksleepdie
02-09-2010, 10:52 PM
Is there a way to make this mod into a "add to cart" button instead of the current "buy now" option?? I'd like it if people could add to the quantity instead of having to make another transaction.