vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Add extra info to the PayPal Subscription Email (https://vborg.vbsupport.ru/showthread.php?t=258512)

DaveS 02-06-2011 10:00 PM

Add extra info to the PayPal Subscription Email
 
1 Attachment(s)
There was a previous mod that I used on my forum that added the UserName and UserId to the PayPal email that was sent. I found this information useful if I needed to check anything with a subscription.
https://vborg.vbsupport.ru/showthread.php?t=99421
All credit to Luroca the original contributor.
I recently upgraded from 3.8 to 4.1 and wanted the same functionality and this simple mod hadn't yet been release anywhere so I set about working out the changes that I needed to make in the new vB4 template system.

Before:

Site Sponsor Subscription
Item Number 0c8cbc5d1bc869922341c3fbb37767a9 14.00 EUR


After:

Site Sponsor Subscription of TestUser (1125)
Item Number 0c8cbc5d1bc869922341c3fbb37767a9 14.00 EUR

So after the type of subscription the UserName and the UserId are appended.

In the Subscriptions (Paid) Templates group find the subscription_payment_paypal template.
Find the line:
Code:

<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}}" />
and replace with:

Code:

<input type="hidden" name="item_name" value="{vb:rawphrase x_subscription, {vb:raw subinfo.title}} of {vb:raw userinfo.username} ({vb:raw userinfo.userid})" />
Hope this is useful to some of you. :D

stained 02-07-2011 09:09 PM

Thank you :)

Davey-UK 06-24-2011 04:55 AM

Brilliant. Ive been looking for this. Now just wait till a buyer pops up to test it. :):up:

stained 06-24-2011 10:41 AM

Just as a preliminary confidence check for you Davey, I can confirm that this is working correctly in 4.1.4. Here's one from yesterday :

22. Jun 2011 07:40:42 PDT
Transaction ID: xxxxxxxxxxxxxxxxxx

Hello xxxxxxxxxxx,

You received a payment of €xxxx EUR from xxxx xxxxxxxx (xxxxx.xxxxxxxxxx@yahoo.com)
You can now ship any items. To see all the transaction details, log in to your PayPal account.

It may take a few moments for this transaction to appear in your account.

Seller Protection - Not Eligible


--------------------------------------------------------------------------------

Buyer
xxxxxx xxxxxxxxx
xxxxx.xxxxxxxxxx@yahoo.com
Instructions to merchant
The buyer hasn't entered any instructions.

Full Member Subscription of xxxxxxx (1331)
Item# xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx EUR 1 xxxx EUR

Subtotal xxxx EUR
Total €xxxx EUR
Payment €xxxx EUR
Payment sent to yyyy.yyyyyyy@yyyyyy.com

BadgerDog 07-11-2011 10:29 PM

Has anyone had a problem with this breaking the PayPal acknowledgement of payments vBulletin routine?

Thanks for any feedback ... :)

Regards,
Doug

DaveS 07-12-2011 04:10 AM

Quote:

Originally Posted by BadgerDog (Post 2219463)
Has anyone had a problem with this breaking the PayPal acknowledgement of payments vBulletin routine?

Thanks for any feedback ... :)

Regards,
Doug

No. I get several subscriptions a day and I'm on 4.1.4 with no problems.

as7apcool 07-12-2011 05:18 PM

Thank you

chrisngrod 03-16-2012 05:52 PM

I actually stumbled upon this. Thanks a lot. It's very helpful when dealing with Paypal complaints.


All times are GMT. The time now is 12:01 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.01147 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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