Redzor Posted August 22, 2011 Share Posted August 22, 2011 Hello prestausers, I have a little problem with my shopping cart summary If i ad a coupon of € 50.00 the price display is " -€ 50.00 " I would like a space between the "-" and the "€" so it comes like this "- € 50.00" i have looked through the code but can't find anything here the code from the shopping_cart.tpl {if $discount.value_real > 0} {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPriceprice=$discount.value_tax_exc*-1}{/if} {/if} Link to comment Share on other sites More sharing options...
olea Posted August 22, 2011 Share Posted August 22, 2011 Have a look at the Tools::displayPrice() method Link to comment Share on other sites More sharing options...
Redzor Posted August 22, 2011 Author Share Posted August 22, 2011 Have a look at the Tools::displayPrice() method Hello euh where can i find that ? i have looked under the map Tools, but there are a lot of maps and witch one do i need for this, or am i searching in the wrong direction ? Link to comment Share on other sites More sharing options...
Redzor Posted August 23, 2011 Author Share Posted August 23, 2011 Oke i have searched and found this / An "absolute" voucher is available in one currency only$currency = ((int)$cart->id_currency ? Currency::getCurrencyInstance($cart->id_currency) : Currency::getCurrent()); if ($this->id_currency != $currency->id)return 0; $taxDiscount = Cart::getTaxesAverageUsed((int)($cart->id)); if (!$useTax AND isset($taxDiscount) AND $taxDiscount != 1) $this->value = abs($this->value / (1 + $taxDiscount * 0.01)); i have found this code in the file classes/discount.php But i cant find anything where the "-" is placed Link to comment Share on other sites More sharing options...
olea Posted August 23, 2011 Share Posted August 23, 2011 Tools::displayPrice() is located in file classes/Tools.php Link to comment Share on other sites More sharing options...
Redzor Posted August 24, 2011 Author Share Posted August 24, 2011 Tools::displayPrice() is located in file classes/Tools.php Thanks for your help the line 396 was the line i needed if ($isNegative) $ret = '- '.$ret; if ($no_utf8) i have added a extra space next to the "-" symbol. SOLVED Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now