View Single Post
  #2   IP: 153.99.38.100
Old 2016-08-13, 08:12 PM
Karly Karly is offline
初级会员
 
Join Date: 2012-02-10
Posts: 1
Karly 现在声名狼藉
Default

Code for AUD is here:

Takes currency values from database, just change the query to make dollars e.t.c.

Add In /public_html/includes/templates/yourtemplate/templates/tpl_product_info_display.php

After line 72:
Code:
//au currency

$currencies_query_db = "select *
                          from " . TABLE_CURRENCIES . " where title = 'Euro'";
$rate = $db->Execute($currencies_query_db);
$rates = $rate->fields['value'];
$spacer = '<br/>';
echo $spacer;
$value = zen_get_products_display_price((int)$_GET['products_id']);
list($curency, $amount) = split(';', $value);
$amount = $amount*$rates;
$amount= number_format($amount, 2, '.', '');
echo '&euro;'.$amount;

//end of au currency
Reply With Quote