Welcome, Guest
Username: Password: Remember me

TOPIC: List site name in Paypal reports

List site name in Paypal reports 4 months 2 days ago #6756

  • Brent
  • Brent's Avatar
  • Offline
  • Junior Boarder
  • Posts: 25
  • Karma: 0
Currently in Paypal reports we can see the title of the Advert in our Paypal reports, but we would also like to include the site name in the report ( [Site Name] - [Advert Title] ).

Can we add this functionality by editing some code in the Paypal plugin?

Thanks!
The administrator has disabled public write access.

List site name in Paypal reports 3 months 4 weeks ago #6765

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2759
  • Thank you received: 292
  • Karma: 40
Hi,

Open the below file,

Root -> plugins -> jomclassifiedspayment -> jomclPaypal -> jomclPaypal.php

Find the below code in the above file :
$_itemId = JRequest::getInt('Itemid');

Add the following code after the above line
$config = JFactory::getConfig();
$sitename = $config->get( 'sitename' );


Find the below code in the same file :
$html .= '<input type="hidden" name="item_name" value="'.$_title.'">';

Replace the following code instead of above code :
$html .= '<input type="hidden" name="item_name" value="'.$sitename.' - '.$_title.'">';

Finally save the file and check.

Thanks.
The administrator has disabled public write access.
Time to create page: 0.248 seconds