Welcome, Guest
Username: Password: Remember me

TOPIC: List site name in Paypal reports

List site name in Paypal reports 1 year 10 months ago #6756

  • Brent
  • Brent's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • 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 1 year 10 months ago #6765

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2941
  • Thank you received: 336
  • Karma: 45
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.197 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 skype.jomclassifieds
 
 
Copyright © 2013-2018 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies