close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Norwegian kroner as currency

Thread began 10/09/2012 4:28 pm by Rune Brynestad | Last modified 10/17/2012 8:09 am by Rune Brynestad | 1376 views | 6 replies |

Rune Brynestad

Norwegian kroner as currency

In the Powerstore database I have edited the wa_settings table and caenged currency option from

Canadian Dollar ($):CAD;U.S. Dollar ($):USD;Euro (&euro):EUR; Great Britain Pound (&pound):GBP; Australian Dollar($):AUD

to

Canadian Dollar ($):CAD;U.S. Dollar ($):USD;Euro (&euro):EUR; Great Britain Pound (&pound):GBP; Australian Dollar($):AUD;Norwegian Kroner (Kr. ):NOK

See attached picture

Then in the settings panel, I'm able to select Norwegian kroner as the stores currency

Still it displays Dollar all over my site. I can change to Pound and Euro and my site gets updated with the new currency, but when I change to the newly added Norwegian kroner it shows Dollar.

Live URL Here: index.php

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/globals/globals.php file find the following code:

php:
switch ($GLOBALS['WAGLOBAL_Currency']) {

    case "EUR":
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "€";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "€";
        break;
    case "GBP":
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "£";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "£";
        break;
    default:
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "$";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "$";
}





and change it to:

php:
switch ($GLOBALS['WAGLOBAL_Currency']) {

    case "EUR":
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "€";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "€";
        break;
    case "GBP":
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "£";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "£";
        break;
    case "NOK":
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "Kr.";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "Kr.";
        break;
    default:
        $GLOBALS['WAGLOBAL_CurrencySymbol'] = "$";
        $GLOBALS['WAGLOBAL_CurrencyChar'] = "$";
}
Sign in to reply to this post

Rune Brynestad

Thanks. Norwegian kroner is up and running.

But the format is wrong. Kr.2,085.00 should be Kr.2.085,00

, as decimal symbol and . as thousands separator.

How do I change it ?

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

Power Store does not support formatting numbers in that way.

it would require updating each page that display the price to change the format being used. There is not a simple way to change this, you would need to change it on all the pages.

Sign in to reply to this post

Rune Brynestad

Ok. I'll find them one by one.

I need to change the character set to UTF-8 for emails.

Which files do I need to update and how?

Could it be done using Universal Email ?

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

in the WA_Universal Email folder, open each of the files whose name begins with WAUE_

on line 15:
$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","");


change that to:
$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","UTF-8");

Sign in to reply to this post

Rune Brynestad

Perfect.

Thanks.

Regards
Rune

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...