Add extra info to the PayPal Subscription Email
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.
Useful information in paypal mail 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}}" /> 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})" /> Download No files for download. |