vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - Add PayPal Buy Now Button (https://vborg.vbsupport.ru/showthread.php?t=157739)

rpainter 09-12-2007 10:00 PM

Add PayPal Buy Now Button
 
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:
Code:

<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:
Code:

[paypal=email@email.com]5.00[/paypal]
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.
Attachment 69765

The syntax for this Code is as follows:
Code:

[paypal=PayPalEmailAddress]Cost[/paypal]

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

Quote:

Originally Posted by steveninstl (Post 1338508)
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

Quote:

Originally Posted by momo2 (Post 1339296)
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.


All times are GMT. The time now is 12:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01109 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete