Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Mar 2007
    Posts
    249
    Plugin Contributions
    6

    Default Re: How to display different currency in product info?

    if you want to display in product listings also, then :

    Add In /public_html/includes/modules/yourtemplate/product_listing.php

    After line 111:

    Code:
    //euro currency
    
    $currencies_query_db = "select *
                              from " . TABLE_CURRENCIES . " where title = 'Euro'";
    $rate = $db->Execute($currencies_query_db);
    $rates = $rate->fields['value'];
    $value = zen_get_products_display_price($listing->fields['products_id']);
    list($curency, $amount) = split(';', $value);
    $amount = $amount*$rates;
    $amount= number_format($amount, 2, '.', '');
    $amount= 'Approx €'.$amount;
    $lc_text = $lc_price . $amount;
    
    //end of euro currency

  2. #12
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to display different currency in product info?

    Hi,

    thanks a lot

    So I could make now all changes to display the additional currency.

    Cheers


    Frank

  3. #13
    Join Date
    Jan 2007
    Posts
    226
    Plugin Contributions
    0

    Default Re: How to display different currency in product info?

    Hello,

    I don't know if my situation is slightly different of not.

    My website is marketed in New Zealand, however I am in Australia.

    My products are in Australian Dollars. I can't put them in NZ dollars because the merchant account that I have only allow the system to send payments to my Eway account in Australian dollars.

    What I want to do is to be able to have the ability to show (on the product page), the price in New Zealand dollars (like the currency side box, how you can select different currencies, however I don't have my site set up with side boxes)

    Is there a way to do this?

    Kind regards,
    Anthony

  4. #14
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: How to display different currency in product info?

    Quote Originally Posted by Calljj View Post
    if you want to display in product listings also, then :

    Add In /public_html/includes/modules/yourtemplate/product_listing.php

    After line 111:

    Code:
    //euro currency
    
    $currencies_query_db = "select *
                              from " . TABLE_CURRENCIES . " where title = 'Euro'";
    $rate = $db->Execute($currencies_query_db);
    $rates = $rate->fields['value'];
    $value = zen_get_products_display_price($listing->fields['products_id']);
    list($curency, $amount) = split(';', $value);
    $amount = $amount*$rates;
    $amount= number_format($amount, 2, '.', '');
    $amount= 'Approx €'.$amount;
    $lc_text = $lc_price . $amount;
    
    //end of euro currency
    Hi Calljj,

    Im totally newbie, just installed ZenCart 3 days back and spent almost 48 hrs on it.

    Really nice code.

    I have little problem and need your guidance.

    When I tried to replicate same code in other files like new_products.php, It is working but the problem is that its not reflecting Discount price.

    I mean to say when its calculating the given currency by your code, its calculating the original product price for currency conversion, its not taking the new discounted price.

    1st Request
    So I want to know what changes should I do to the code, so it should see if the price is discounted then display that, if possible in same way as it shows like Strike out old price and show new price in red color.

    2nd Request
    I want your code to reflect on all site, so individually what all files I should put this code. When I changed new_products.php, its changed in new products section but still not on home page.... So where to see to change home page too.

    3rd Request
    Is it possible it to integrate to show at products total value page in shopping cart, if so then how.

    My base currency is Euro, and im placing your code with GBP

    Thank you in advance.

    ~Time

  5. #15
    Join Date
    Mar 2007
    Posts
    249
    Plugin Contributions
    6

    Default Re: How to display different currency in product info?

    I ended up using this

    http://www.zen-cart.com/forum/showth...ht=euro&page=2

    and altering css and the .php files to get what you described above

  6. #16
    Join Date
    Jul 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to display different currency in product info?

    Its possible to display different currency in attributes???
    please help

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a Need to display different alt text for additional images on product info page
    By GillS in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 12 Feb 2013, 01:18 AM
  2. v139h Product Info Page - display currency
    By LaurieRay in forum General Questions
    Replies: 1
    Last Post: 14 Jun 2012, 04:52 PM
  3. v150 Having different product info display pages
    By Baron5 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Jun 2012, 12:18 AM
  4. Different Product Info Display for Different Category
    By fairy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 Mar 2010, 08:13 PM
  5. Different product info display page for each category
    By pjb923 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Sep 2008, 07:33 AM

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