vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Direct Link to A Paid Subscription (https://vborg.vbsupport.ru/showthread.php?t=325918)

addamroy 12-23-2017 12:31 AM

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.

TheLastSuperman 12-23-2017 07:53 PM

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.

addamroy 12-26-2017 08:15 PM

Quote:

Originally Posted by TheLastSuperman (Post 2591795)
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.

TheLastSuperman 12-26-2017 09:25 PM

Quote:

Originally Posted by addamroy (Post 2591849)
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 :cool:. 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.


All times are GMT. The time now is 11:55 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.01114 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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