Jump to content

[Solved]With secondary currency, always unit price is displayed as "discount price"


tatamimi

Recommended Posts

I wrote this topic.
but it was maybe the case only for me...
because I changed before the cart.php (to use yen currency and CHF in paypal module).

the detail is in this topic.
 

http://www.prestashop.com/forums/topic/347915-solved-how-to-switch-the-code-of-ps-round-in-cartphp-depends-on-the-customers-currency/?do=findComment&comment=1752489

 

The problem is not solved actually but it is not the common problem (and complicated), so I close this topic...

 

---------------------------------------

 


Hello!

I'm testing the shop of prestashop 1.6.0.6, and use 2 currency (CHF and Yen).
Primary currency is CHF.

When I choose the currency as Yen, and go to the shopping cart summary page,
In the product list, the unit price are displayed as discount price (with red text of [0%] )  always even if there are not discount item.

 

Like this...

 

¥1000 [0%]
¥1000

 

 

When I choose the primary currency(CHF), with no problem, it is displayed like

 

8.7 CHF  

 

 

The code is
 

<span class="price{if isset($product.is_discounted) && $product.is_discounted} special-price{/if}">{convertPrice price=$product.price}</span>

{if isset($product.is_discounted) && $product.is_discounted}
   <span class="price-percent-reduction small">
        {assign var='priceReductonPercent' value=(($product.price_without_specific_price - $product.price_wt)/$product.price_without_specific_price) * 100 * -1}
	{$priceReductonPercent|round|string_format:"%d"}%
    </span>
    <span class="old-price">{convertPrice price=$product.price_without_specific_price}</span>
{/if}

Is somoone know the good solution?
Please help!

Edited by tatamimi (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...