vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325918

Direct Link to A Paid Subscription
by addamroy
23 Dec 2017 01:31

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 23 Dec 2017 20:53

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 26 Dec 2017 21:15

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 26 Dec 2017 22:25

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 05:33.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.