Welcome, Guest
Username: Password: Remember me

TOPIC: List site name in Paypal reports

List site name in Paypal reports 3 years 4 months ago #6756

  • Brent
  • Brent's Avatar
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 years 3 months ago #6765

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 3019
  • Thank you received: 352
  • Karma: 46
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.178 seconds

Contact us

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