ahmed5 Posted February 22, 2006 Posted February 22, 2006 hello, I want to display a second currency along side the price, for example: Product A's price is ?10 / $17 is there a contribution for this? thankyou
boxtel Posted February 23, 2006 Posted February 23, 2006 please help in catalog/includes/classes/currencies.php: change this code : function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } to this code: function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity).'/'. $this->format(tep_add_tax($products_price, $products_tax) * $quantity,true,'EUR'); } change the EUR in what your second currency should be. Treasurer MFC
ahmed5 Posted February 24, 2006 Author Posted February 24, 2006 in catalog/includes/classes/currencies.php: change this code : function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } to this code: function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity).'/'. $this->format(tep_add_tax($products_price, $products_tax) * $quantity,true,'EUR'); } change the EUR in what your second currency should be. it didn't work :( btw, there is no catalog folder in my directory, so i changed the one in admin/includes/classes/currencies.php instead, is this wrong??
boxtel Posted February 25, 2006 Posted February 25, 2006 it didn't work :( btw, there is no catalog folder in my directory, so i changed the one in admin/includes/classes/currencies.php instead, is this wrong?? yes, includes/classes/currencies.php Treasurer MFC
majerfra Posted February 27, 2006 Posted February 27, 2006 yes, includes/classes/currencies.php yes .. works for me too ... but it not idisplay two currencies in checkout_confirmation.php and so later in the invoice! any help please?
boxtel Posted February 27, 2006 Posted February 27, 2006 yes .. works for me too ... but it not idisplay two currencies in checkout_confirmation.php and so later in the invoice! any help please? in all probability because there the format() function is called directly instead of the display_price() function. Treasurer MFC
majerfra Posted February 27, 2006 Posted February 27, 2006 in all probability because there the format() function is called directly instead of the display_price() function. i'm not so good in php :( ... any sample, please ...? thanx in advance
nosferatu_era Posted March 6, 2008 Posted March 6, 2008 in all probability because there the format() function is called directly instead of the display_price() function. Go to : includes\modules\order_total\ edit: ot_total.php find this line: 'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']), replace with this line: 'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency_value']), same for: ot_shipping, ot_subtotal, ot_tax, ot_loworderfee This works for me, let my know If it is Ok.
ottoke28 Posted May 17, 2008 Posted May 17, 2008 Go to : includes\modules\order_total\ edit: ot_total.php find this line: 'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']), replace with this line: 'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency_value']), same for: ot_shipping, ot_subtotal, ot_tax, ot_loworderfee This works for me, let my know If it is Ok. After editing all modules in the order_total php all file reding error .. Please repair your code in replace line ... Who is problem in the code ? please .. Thank you Sorry no good speek englisch
Recommended Posts
Archived
This topic is now archived and is closed to further replies.