![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#2
IP: 153.99.38.100
|
|||
|
|||
|
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 '€'.$amount;
//end of au currency
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I use my currency instead of US Dollars? | Karis | ZenCart | 0 | 2016-08-06 10:28 AM |
| Display product extra field data on Invoice | Hahira | X-Cart | 0 | 2015-12-02 06:47 PM |
| x-cart Template Editing Guide for 4.1.x | topvip | X-Cart | 0 | 2009-04-15 11:42 PM |
| Template Editing Guide for 4.1.x | topvip | X-Cart | 0 | 2009-03-10 08:12 AM |
| What are the Strongest Directories? | smiling | 网站链接开发 | 1 | 2007-07-28 09:26 PM |