Doing this will require modifications to some of the Jamroom core files, so please make sure you BACKUP your Jamroom PHP files before proceeding - that way any changes can be easily “undone”.
NOTE These instructions are for Jamroom 2.10 and newer only
'{ITEM_PAYPAL_FORM}' => "</form><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=_blank> <input type=hidden name=cmd value=_xclick> <input type=hidden name=business value="{$row['item_email']}"> <input type=hidden name=item_name value="{$row['item_name']}"> <input type=hidden name=item_number value="{$row['item_number']}"> <input type=hidden name=amount value="{$row['item_cost']}"> <input type=hidden name=no_note value=1> <input type=hidden name=currency_code value="{$row['item_ccode']}"> <input type=image src="{$jamroom['jm_htm']}/themes/{$_theme['theme_dir']}/images/buy_now.gif" border=0 name=submit alt="Click here to purchase {$row['item_name']}">"
The part we are interested in changing is the “{$row[’item_email’]}” section, part of the way in to that string. Simply change it to the PayPal email address you want to use for ALL your artists:
'{ITEM_PAYPAL_FORM}' => "</form><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=_blank> <input type=hidden name=cmd value=_xclick> <input type=hidden name=business value="bigguy@jamroom.net"> <input type=hidden name=item_name value="{$row['item_name']}"> <input type=hidden name=item_number value="{$row['item_number']}"> <input type=hidden name=amount value="{$row['item_cost']}"> <input type=hidden name=no_note value=1> <input type=hidden name=currency_code value="{$row['item_ccode']}"> <input type=image src="{$jamroom['jm_htm']}/themes/{$_theme['theme_dir']}/images/buy_now.gif" border=0 name=submit alt="Click here to purchase {$row['item_name']}">"
I’ve modified it to “bigguy@jamroom.net” in the above code, but obviously you will want to change it to your own e-mail 1) Once done, save your changes to the file.
jmInput("{$language['store'][11]}",'item_email','text',$_show['item_email']);
Change it to:
#jmInput("{$language['store'][11]}",'item_email','text',$_show['item_email']);
(i.e. put a pound sign ‘#’ in front of the line so it will be commented out).
Thats it - now any purchase from an artist page on your site will go through the PayPal email address you entered in step 1, and the Artists will no longer have the ability to put their own email address in.
1) that is unless you would like me to get all of your payments - really, I don’t mind
|