List site name in Paypal reports

List site name in Paypal reports was created by Brent

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!
5 years 2 months ago#6756

Please Log in or Create an account to join the conversation.

Replied by Super User on topic List site name in Paypal reports

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.
5 years 2 months ago#6765

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 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-2021 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.