This isn't exactly specific for VB4, but it is what I'll be using.
Has anyone or can anyone point me in the right direction for changing the hard coded currency for the subscription system? This only has to be PayPal if that makes life easier, and can replace one of the existing currencies.
Cheers;
--------------- Added 07 Jan 2010 at 10:42 ---------------
I got bored and figured this out.
Here are the instructions for adding a new currency to PayPal for anyone else's benefit:
First up, you need to find out the currency code for what you want to add. Generally you would already know this, but if you don't, go here: http://www.xe.com/ - I need New Zealand Dollars, so mine is NZD. Substitute NZD in the following code to what ever it is that you need.
open forumroot/admincp/subscriptions.php and make the following changes
open forumroot/includes/class_paid_subscription.php and make the following changes (Thanks to this post)
Under line 182, add the following:
Code:
'nzd' => 'NZ$',
The whole lot should look like this:
Code:
var $_CURRENCYSYMBOLS = array(
'nzd' => 'NZ$',
'usd' => 'US$',
The 'NZ$' bit is how you want your currency to be displayed.
We need to run an SQL query to update the PayPal Payment API. Do this in the VB Admin control panel or phpMyAdmin or what ever. Remember to put in your table prefix in front of `paymentapi` if you have one:
Code:
UPDATE `paymentapi` SET `currency` = 'nzd,usd,gbp,eur,aud,cad' WHERE `paymentapi`.`paymentapiid` =1 LIMIT 1 ;
Now you need to add a new phrase for your currency.
Login to your VB Admin CP > Languages & Phrases > Phrase Manager > Add New Phrase
'Varname' has to be what ever you put above. In my example I used "nz_dollars"
Put what ever you want in the 'Text' field. I put 'NZ Dollars'