2016-03-25, 03:05 AM
(This post was last modified: 2016-03-25, 05:07 PM by p00lz.
Edit Reason: forgot a comma in the php
)
Any idea on getting GBP setup on this
Would it be as simple as:
\admin\modules\user\mysubs.php
Line 95 onward here:
And just making this adjustment:
And the same with line 344-348 (after the above adjustment), same code.
Then \inc\plugins\mysubs.php
Line 278 onward:
Make this change:
And the same at Line 334-343 (after the above adjustment)
I've attached a file with the above modifications if anybody wants to test
edit;tested and admin module does not load
edit;forgot a bloody comma it loads now, new fixed files attached
I still need to test with a paypal though, might take me some time
Would it be as simple as:
\admin\modules\user\mysubs.php
Line 95 onward here:
$currency_options = array(
'USD' => "USD (US Dollar)",
'EUR' => "EUR (Euro)",
'CAD' => "CAD (Canadian Dollar)"
);
And just making this adjustment:
$currency_options = array(
'USD' => "USD (US Dollar)",
'EUR' => "EUR (Euro)",
'CAD' => "CAD (Canadian Dollar)",
'GBP' => "GBP (British Pounds Sterling)"
);
And the same with line 344-348 (after the above adjustment), same code.
Then \inc\plugins\mysubs.php
Line 278 onward:
{
case 'EUR':
$curcode = '€';
break;
case 'USD':
case 'CAD':
default:
$curcode = '$';
break;
}
Make this change:
{
case 'EUR':
$curcode = '€';
break;
case 'GBP':
$curcode = '£';
break;
case 'USD':
case 'CAD':
default:
$curcode = '$';
break;
}
And the same at Line 334-343 (after the above adjustment)
I've attached a file with the above modifications if anybody wants to test
edit;tested and admin module does not load
edit;forgot a bloody comma it loads now, new fixed files attached
I still need to test with a paypal though, might take me some time