J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
[RESOLVED] Changing currency symbol (1 viewing) 
Go to bottom
TOPIC: [RESOLVED] Changing currency symbol
#191
Mike Wheeler
Fresh Boarder
Posts: 7
User Offline
[RESOLVED] Changing currency symbol Karma: 0  
Hello,

I have installed the professional version of the plugin as buying directly from a JOOMLA article it exactly what I wanted and this was so simple and quick to setup, thank you.

Is there a way to change the currency symbol to £ rather than GBP and also to have it display in front of the price..?

Thanks

Mike
 
Logged Logged  
  The administrator has disabled public write access.
#193
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Changing currency symbol Karma: 79  
Hello,

Paypal supports symbol only for $ but for other currency it needs currency code like GBP to work fine. The currency code in plugin params is used also to set the shopping cart currency, so it needs to be set as GBP. If you like show the symbol £ in the article, it require to be set directly in the plugin file. The same for the ordering, you can place the symbol before the price.
If you have any experience for Joomla plugin i can point out the right file to change.

Best regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#194
Mike Wheeler
Fresh Boarder
Posts: 7
User Offline
Re:Changing currency symbol Karma: 0  
Thank you for the fast response John.

I have a fairly good knowledge of joomla so would appreciate it if you could point me in the right direction so I can add the £ symbol.

Cheers
 
Logged Logged  
  The administrator has disabled public write access.
#195
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Changing currency symbol Karma: 79  
That's great Mike.

You should locate the main plugin file in serverroot/plugins/content/instantpaypal/instantpaypal.php

The at line 295 you will find this code:
Code:

$shippingAmountString = $shippingAmount ? ' | <span>' . $shippingText . $shippingAmount . ' ' . $this->params->get('currency_code', 'USD') . '</span>' : '';
Normally it's showed currency based on plugin setting. You can replace the parameter and replace with symbol, and also invert the order of the strings:
Code:

$shippingAmountString = $shippingAmount ? ' | <span>' . $shippingText . ' £ ' . $shippingAmount . '</span>' : '';
John
 
Logged Logged  
  The administrator has disabled public write access.
#196
Mike Wheeler
Fresh Boarder
Posts: 7
User Offline
Re:Changing currency symbol Karma: 0  
Thank you John, that worked a treat...
 
Logged Logged  
  The administrator has disabled public write access.
#197
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Changing currency symbol Karma: 79  
Perfect
 
Logged Logged  
  The administrator has disabled public write access.
Go to top