Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2017, 12:31 AM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Direct Link to A Paid Subscription

I'm trying to find a way to connect an Add to Cart button to a paid subscription... (Using Paypal.)

It's surprising that this isn't possible by default.

I'm trying to bypass the paid subscriptions page as it's just an extra unneccessary step that's definitely effecting sales.

Peeking at the source code of the Paid subscriptions pages makes it look like it "should" be fairly simple but anything outside of HTML is beyond my expertise so I was crossing my fingers that somebody here would be able to help out!

Long story short, it would be lovely to display a link or a button in some desired location on the forum (like a promotional thread, a custom vb page, ad location, forum sidebar block etc).

I would be ETERNALLY grateful if there was a fix out there for this.

Thanks in advance!

Adam.
Reply With Quote
  #2  
Old 12-23-2017, 07:53 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So then do this:
  • Install Cartplog.
  • Redirect the subscriptions page to a category in cartplog housing the subscriptions you've added as products. *Only adding them so they're listed, you're going to change the template code next*.
  • Change the button code so it subs out the cartplog product so you're actually signing up for a subscription, Paypal should handle the rest and then the subscriptions in vB will do the last part.

Basically you're using Cartplog but only as a container space for your different subscriptions, you're tricking the button in the template by modifying the code so when they click to buy the subscription the rest is handled by the vBulletin subscriptions system and paypal. Cartplog won't be used for purchasing at all per say but there to help you achieve what you want.

Edit: Ahh I may have overthought your initial inquiry... in PayPal there is an area where you can generate buttons and copy/paste the corresponding html code onto your website - that might be what you're looking to do here truth be told just read my above reply and you'll know which is the right way for you.
Reply With Quote
Благодарность от:
addamroy
  #3  
Old 12-26-2017, 08:15 PM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
So then do this:
  • Install Cartplog.
  • Redirect the subscriptions page to a category in cartplog housing the subscriptions you've added as products. *Only adding them so they're listed, you're going to change the template code next*.
  • Change the button code so it subs out the cartplog product so you're actually signing up for a subscription, Paypal should handle the rest and then the subscriptions in vB will do the last part.

Basically you're using Cartplog but only as a container space for your different subscriptions, you're tricking the button in the template by modifying the code so when they click to buy the subscription the rest is handled by the vBulletin subscriptions system and paypal. Cartplog won't be used for purchasing at all per say but there to help you achieve what you want.

Edit: Ahh I may have overthought your initial inquiry... in PayPal there is an area where you can generate buttons and copy/paste the corresponding html code onto your website - that might be what you're looking to do here truth be told just read my above reply and you'll know which is the right way for you.
Hey Superman thanks for chiming in!

I'll have to look into cartplog and see what that's about.

I currently have a custom button in Paypal that can of course I can plop anywhere in the forum, the problem is that there's no way to integrate the Paypal button, or any kind of button with the forum so whoever purchases the product their usergroup is updated.

The link/button would have to somehow load and send the applicable data into the button code (whatever username/product id variables vb sends to Paypal) to be sent back via api after the sale.

We just want to cut that paid subscriptions page out of the picture. User clicks "buy button" and goes straight to the payment processor like a normal sales process.

I'm going to investigate cartplog now and see what it does.
Reply With Quote
  #4  
Old 12-26-2017, 09:25 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by addamroy View Post
The link/button would have to somehow load and send the applicable data into the button code (whatever username/product id variables vb sends to Paypal) to be sent back via api after the sale.

We just want to cut that paid subscriptions page out of the picture. User clicks "buy button" and goes straight to the payment processor like a normal sales process.
You can modify this, you can also edit the database and change any auto-increment product id's to the # you wish that would match a particular # in the button code such as subscription/product id # as well. So there is still a wayt o use this even if you don't see it or understand right now . Chime back in when you have installed and fiddled with it and have a working button code, post the paypal button code here for review and I'll help as best I can, time permitting etc.
Reply With Quote
Reply


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 07:25 PM.


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.04323 seconds
  • Memory Usage 2,200KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete