2071 Posts in 814 Topics by 448 members
|Go to End||Next >|
11 March 2010 at 3:09am
add this in your mysite/_config.php file:
// Set the currency of the site to be in NZD (New Zealand Dollars).
11 March 2010 at 5:45am
That is there, but I'm still getting the error message:
"Fatal error: Call to undefined method Currency::getcurrencysymbol() in /home/wwdncouk/public_html/ecommerce/code/forms/OrderForm.php on line 70"
11 March 2010 at 6:19am
Also how do you set up the page PayPal redirects to? It is currently going to "Paypal/complete/" Which doesn't exist. Any ideas ?
11 March 2010 at 9:11am Last edited: 11 March 2010 9:15am
I assumed there would be a get method as well as the set method, I discovered this yesterday.
change the code in orderform.php to:
$total = new Currency('Amount');
$paymentFields = Payment::combined_form_fields($total->Nice()." ".$currentOrder->Currency(), $currentOrder->Total());
watch out for the line wrap on that last line
If you don't want GBP showing try removing:
11 March 2010 at 12:43pm
I've done that and now it displays as:" £ " Which I think is nearly there.
Also - I've added a Shipping Modifier and it works completely up to the point of going to PayPal - anyone know what that is?
Cheers for all the help
11 March 2010 at 12:57pm
yep, it tries to encode the ampersand!
try this in your config instead:
works when I tested it, perhaps not ideal but it works.
Don't use PayPal so can't help there sorry.
11 March 2010 at 1:06pm
Nope that didn't work - just get a lot of ? in diamonds.
Which payment provider do you use? PayPal is driving me nuts.
11 March 2010 at 1:17pm
I use Paymate, not sure it'll do UK banks though.
Are your templates and other pages all saved as UTF-8? when the encoding is off that's when you get the diamonds etc.
|Go to Top||Next >|