Ok, this one has me scratin my head
In Canada we are both English and French whereas the $ placement is different between the two.
Can English uses $1.00
and
Can French is 1.00$
any clues on to how to set this?
Ok, this one has me scratin my head
In Canada we are both English and French whereas the $ placement is different between the two.
Can English uses $1.00
and
Can French is 1.00$
any clues on to how to set this?
IntelCos
Set it on the left ... and let the international method be standard and send the customers that whine a free gifty or discount coupon for their troubles?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I think you'd have to get very very creative if you wanted to change that.
Possible Scenario:
- English customers: Use CAD and see $1.00, and view the site in english.
- French customers: Use new currency CFD and see 1,00$ and view the site in french.
To do this,
1. create a new currency called CFD (or whatever you wish), using $ as right symbol and , as decimal symbol. Set it to the same "value" as CAD so that there is no difference in exchange rate, etc.
2. Set Admin->Configuration->My Store->Switch To Default Language Currency = true.
3. Edit your french.php language file and set the language currency to CFD:
define('LANGUAGE_CURRENCY', 'CFD');
and english.php to CAD:
define('LANGUAGE_CURRENCY', 'CAD');
NOTE: This requires that you do not use any payment modules who care what currency you're submitting for payment.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thks Doc, what payment methods would use or require this as you mentioned?
The methods being used on the new build site are
Check/Money Order, COD, EU Bank Transfer, InternetSecure, Paypal
Linda,,,snicker
IntelCos
PayPal says ...
use only the real International xchange curreny codes ...
As will any other automatic currency translation ...
DrByte's method "fakes" it in Zen Cart to sooth your customers ... but does not work with the rest of the world ...
Money only knows money ... and unless you:
1 buy a small island and print your own
2 write a special translator to interpret the interpreted currency you "faked" in Zen Cart into something those in the real world know what you mean
you will not be able to use that method as they won't know CFD from ABC ...
This means ... unless you know how to build a translator for Zen Cart to talk to outside payment gateways ... you will make a real mess trying to make 2 currencies that are really the same currency but look different ...
One way that might work is to use 1 currency ... and get into the currency class and change the format based on language to switch the left and right symbol around ... and help it display different but not use 2 currencies to achieve this and then not run amuck with the exchange rates ...
Got all that?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
To piggyback off Linda's thought, you could try this:
includes/classes/currencies.php
around line 42 you have:
Add this BEFORE that line:PHP Code:
$currencies->MoveNext();
PHP Code:
/*** if language == FR and currency == CAD, swap left/right symbols for display **/
if (strtoupper($_SESSION['languages_code']) == 'FR' && $currencies->fields['code'] == 'CAD') {
$this->currencies[$currencies->fields['code']]['symbol_left'] = $currencies->fields['symbol_right'];
$this->currencies[$currencies->fields['code']]['symbol_right'] = $currencies->fields['symbol_left'];
}
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That works, still some testing to do, but on the visual part it is fine.
IntelCos
A cleaner way would be to do the modification in the "languages" section.
I've added the code to "myzencart/includes/languages/mytemplate/french.php", around line 47 right after
add the followingPHP Code:
define('LANGUAGE_CURRENCY', 'CAD');
Note: 'thousands_point' cannot be set to nbsp; because it's length is limited to one character.PHP Code:
// Convert CAD currency display to french format
if ( $currencies->is_set( 'CAD' ) ) {
$currencies->currencies['CAD']['symbol_left'] = '';
$currencies->currencies['CAD']['symbol_right'] = ' $';
$currencies->currencies['CAD']['decimal_point'] = ',';
$currencies->currencies['CAD']['thousands_point'] = ' ';
}
Same as above, but for all currencies
PHP Code:
// Convert currencies format to french
foreach( $currencies->currencies as $code => $currency_type ) {
$currencies->currencies[$code]['symbol_right'] = ' ' . $currency_type['symbol_left'];
$currencies->currencies[$code]['symbol_left'] = '';
$currencies->currencies[$code]['decimal_point'] = ',';
$currencies->currencies[$code]['thousands_point'] = ' ';
}
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks