Thread Rating:
  • 10 Vote(s) - 2.7 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN)
#65
Any idea on getting GBP setup on this

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


Attached Files
.zip   MySubscription GBP test.zip (Size: 19.73 KB / Downloads: 89)
Reply


Messages In This Thread
RE: MySubscriptions - Paypal IPN Plugin - by Zueq - 2012-07-31, 08:47 PM
RE: MySubscriptions - Paypal IPN Plugin - by JimR - 2014-02-22, 04:10 PM
RE: MySubscriptions - Paypal IPN Plugin - by ytt - 2014-10-03, 06:49 PM
RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - by p00lz - 2016-03-25, 03:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)