close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Change currency to Taiwanese dollar

Thread began 3/15/2012 12:16 pm by cj.tung395641 | Last modified 3/21/2012 4:28 pm by cj.tung395641 | 1655 views | 13 replies |

cj.tung395641

Change currency to Taiwanese dollar

Hi,

I'd like to know how to change currency to Taiwanese dollar. We do not have decimal point. Thanks!

CJ

Sign in to reply to this post

cj.tung395641

anyone can help me?

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to edit the wa_settings table in the power store database using PHPMyAdmin or another MySQL GUI Tool


you will need to edit the record where the name column is "currency" and change the options column 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; Taiwanese Dollar (NT$):TWD




to remove the decoimal from the cart display, edit the WA_eCart/WA_Store_Cart_PHP.php file, change the following line:

php:
$WA_Store_Cart = new WA_Store_Cart_Definition("WA_Store_Cart", 0, "".($WAGLOBAL_CurrencySymbol)  ."", "", true, 2, 0, "oz", true, 2, 0, 0);



to:

php:
$WA_Store_Cart = new WA_Store_Cart_Definition("WA_Store_Cart", 0, "".($WAGLOBAL_CurrencySymbol)  ."", "", false, 0, 0, "oz", true, 2, 0, 0);




to remove the decimals from the other pages in the site will be a bit more tricky, you will need to find each instance of the number_format function, and change the second perameter from 2 to 0, for example:

php:
number_format($row_WADAProducts["ProductRetailPrice"], 2)



would become:

php:
number_format($row_WADAProducts["ProductRetailPrice"], 0)



if you need assistance making this change, we can help you in a premiere ticket appointment.

Sign in to reply to this post

cj.tung395641

Hi Jason,

It works on check out pages but not on product_detail and product_results.php
and on store manage side there is no choice of TWD

Need more help

Sign in to reply to this post

Jason ByrnesWebAssist

Taiwanese dolor wont be a choice on those pages, it will use "NT$" as the currency symbol on those pages if you set the currency in the admin section to use Taiwanese Dollar.


power store does not support choosing the currency to use by the shopper, you as the admin select the store currency that will be used in the store admin section.

Sign in to reply to this post

cj.tung395641

could you explain more, where can I set the currency in the admin section? thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

In the admin panel, go to Payment Gateway settings -> Currency to select the currency that should be used.

Sign in to reply to this post

cj.tung395641

right, but there is no choice of NT$

Sign in to reply to this post

Jason ByrnesWebAssist

there will be if you follow the first step of my initial response:


edit the wa_settings table in the power store database using PHPMyAdmin or another MySQL GUI Tool

you will need to edit the record where the name column is "currency" and change the options column 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; Taiwanese Dollar (NT$):TWD




in reality, this is not a support feature, if you need assistance with getting it to work, we can assist you in a premiere support appointment.

Sign in to reply to this post

cj.tung395641

okay, now I fix from PHPMyAdmin side and set currency to NT$ but the decimals still there...

Sign in to reply to this post
loading

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...