PDA

View Full Version : Payment question


sdawkins
07-20-2006, 12:25 AM
When someone makes a payment via the suggestion link, on Paypal it always says sponsored link purchase (even though it is for something else). Is there a way/place I can change this.

Thanks :)

Loren
07-20-2006, 08:28 AM
When someone makes a payment via the suggestion link, on Paypal it always says sponsored link purchase (even though it is for something else). Is there a way/place I can change this.

Thanks :)
Yes there is, someone kindly told us how to do this on the old forum, although not as you may want with the full name of plan, tried to figure that one out but haven't been able to, but the following is enough to find out whos paid for what. Heres my snippet which you can try yourself, and some other code to place else where in another file for identification purposes when it comes through to Admin Panel.

#1
Open>plugins>paypal>pre_paypal.

Place Under:
<input type="hidden" name="currency_code" value"="GBP" />
this code:

<input type="hidden" name="item_name" value="Holistic Directory (change to your name of Directory here) Plan:<?php echo $plan; ?> Link ID:<?php echo $id_link; ?>" />

>Save

The $plan will bring up the "Plan" id number, and you can see what your plan id is by making a note of them from your phpadmin>dir_Plans

The $id will bring up the "ID" of the link owner.


#2

Now what i have is a way of seeing whos paid for what.

Open>Admin>Utils>

Find Line 124

/**
* Prints link
*
* @param arr $aLink link information
* @param int $aType displays checkbox if 1
* @param str $aClass table row class
*/
function print_link($aLink, $aType = 0, $aClass = '')

I have added some extra code to identify the link owner which shows up on in the admin manage-listing box.

Under Line 136 (or near here as maybe different now to mine.)

find:
echo "<p>{$aLink['description']}</p>"
Directly underneath this place.

code:
echo "<p><strong>Link ID #:</strong> {$aLink['id']}</p>";
>Save

This will now show the "ID" therefore corresponding to the payment. You can also modify it to add other fields you have created for information purposes, in exactly the same way.

Hope this helps you and others :)

sdawkins
07-20-2006, 01:22 PM
Thank you :)

Loren
07-20-2006, 01:24 PM
You're welcome hun.. :)