View Full Version : Direct Link to A Paid Subscription
addamroy
12-23-2017, 12:31 AM
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 (https://vbulletin.org/forum/showthread.php?t=247779).
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
So then do this:
Install Cartplog (https://vbulletin.org/forum/showthread.php?t=247779).
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
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.