Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default Dollar sign placement ???

    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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Dollar sign placement ???

    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!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Dollar sign placement ???

    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.

  4. #4
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default Re: Dollar sign placement ???

    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

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Dollar sign placement ???

    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!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Dollar sign placement ???

    To piggyback off Linda's thought, you could try this:

    includes/classes/currencies.php
    around line 42 you have:
    PHP Code:
          $currencies->MoveNext(); 
    Add this BEFORE that line:
    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.

  7. #7
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default Re: Dollar sign placement ???

    That works, still some testing to do, but on the visual part it is fine.
    IntelCos

  8. #8
    Join Date
    Nov 2008
    Location
    Montreal
    Posts
    2
    Plugin Contributions
    0

    Idea or Suggestion Re: Dollar sign placement ???

    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

    PHP Code:
      define('LANGUAGE_CURRENCY''CAD'); 
    add the following

    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'] = ' ';
      } 
    Note: 'thousands_point' cannot be set to nbsp; because it's length is limited to one character.

  9. #9
    Join Date
    Nov 2008
    Location
    Montreal
    Posts
    2
    Plugin Contributions
    0

    Idea or Suggestion Re: Dollar sign placement ???

    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'] = ' ';
      } 

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Dollar sign placement ???

    Quote Originally Posted by mudar View Post
    Same as above, but for all currencies
    And, why would you want to do that for "all" currencies?
    .

    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.

 

 

Similar Threads

  1. v155 Missing Sign-IN Sign-up Page
    By lnsenterprise in forum General Questions
    Replies: 4
    Last Post: 30 Mar 2016, 05:48 AM
  2. v151 Green Dollar Sign missing from Product Pricing Manager for Listed products.
    By Lafevers in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 6 Feb 2013, 08:00 AM
  3. dollar sign gbp signs etc!!!!
    By nivlac in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 13 Jun 2010, 07:52 PM
  4. Minimum Dollar Value issue
    By frogpounder in forum General Questions
    Replies: 2
    Last Post: 17 Jul 2009, 08:00 PM
  5. Making A Customer Sign Up/Sign In Before Accessing Catalog
    By thegoodlifestore in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jan 2009, 10:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR