Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
Add PayPal Buy Now Button Details »»
Add PayPal Buy Now Button
Version: 1.00, by rpainter rpainter is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.8 Rating:
Released: 09-12-2007 Last Update: Never Installs: 10
 
No support by the author.

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]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-13-2007, 06:14 PM
Evolution06 Evolution06 is offline
 
Join Date: May 2006
Location: California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #3  
Old 09-13-2007, 06:16 PM
rpainter rpainter is offline
 
Join Date: Jan 2007
Location: South Carolina
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool. Glad it helped.
Reply With Quote
  #4  
Old 09-13-2007, 06:21 PM
steveninstl steveninstl is offline
 
Join Date: Jul 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #5  
Old 09-13-2007, 07:25 PM
rpainter rpainter is offline
 
Join Date: Jan 2007
Location: South Carolina
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by steveninstl View Post
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.
Reply With Quote
  #6  
Old 09-15-2007, 02:57 AM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this can be worked as donating also ??
Reply With Quote
  #7  
Old 09-19-2007, 11:10 AM
rpainter rpainter is offline
 
Join Date: Jan 2007
Location: South Carolina
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by momo2 View Post
this can be worked as donating also ??
I guess it could be, but there are much better donation MODs out there.
Reply With Quote
  #8  
Old 12-22-2008, 08:28 PM
vividbreeze vividbreeze is offline
 
Join Date: Sep 2007
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 02-09-2010, 10:52 PM
eatworksleepdie's Avatar
eatworksleepdie eatworksleepdie is offline
 
Join Date: Oct 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08904 seconds
  • Memory Usage 2,277KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete