chaiwat Posted December 19, 2012 Share Posted December 19, 2012 (edited) Hi, I'm not good in English. I try to display all product prices in all currencies. <p class="price_container"> <span class="price">{if !$priceDisplay}{convertPriceWithCurrency price=$product.price currency=$currencies.0 convert=true}{else}{ }{/if}</span><br /> <span class="price">{if !$priceDisplay}{convertPriceWithCurrency price=$product.price currency=$currencies.1 convert=true}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br /> <span class="price">{if !$priceDisplay}{convertPriceWithCurrency price=$product.price currency=$currencies.2 convert=true}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br /> <span class="price">{if !$priceDisplay}{convertPriceWithCurrency price=$product.price currency=$currencies.3 convert=true}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br /> <span class="price">{if !$priceDisplay}{convertPriceWithCurrency price=$product.price currency=$currencies.4 convert=true}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br /> </p> I don't know much about programming, please help. Prestashop 1.4.5.1 Edited December 20, 2012 by chaiwat (see edit history) Link to comment Share on other sites More sharing options...
chaiwat Posted December 21, 2012 Author Share Posted December 21, 2012 {if !$priceDisplay} {if $currency->id == 4} {convertPriceWithCurrency price={$product.price*$currencies.0.conversion_rate} currency=$currencies.0 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.1.conversion_rate} currency=$currencies.1 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.2.conversion_rate} currency=$currencies.2 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.3.conversion_rate} currency=$currencies.3 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.4.conversion_rate} currency=$currencies.4 convert=true} {elseif $currency->id == 2} {convertPriceWithCurrency price={$product.price/$currencies.1.conversion_rate} currency=$currencies.0 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.1.conversion_rate/$currencies.1.conversion_rate} currency=$currencies.1 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.2.conversion_rate/$currencies.1.conversion_rate} currency=$currencies.2 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.3.conversion_rate/$currencies.1.conversion_rate} currency=$currencies.3 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.4.conversion_rate/$currencies.1.conversion_rate} currency=$currencies.4 convert=true} {elseif $currency->id == 1} {convertPriceWithCurrency price={$product.price/$currencies.2.conversion_rate} currency=$currencies.0 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.1.conversion_rate/$currencies.2.conversion_rate} currency=$currencies.1 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.2.conversion_rate/$currencies.2.conversion_rate} currency=$currencies.2 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.3.conversion_rate/$currencies.2.conversion_rate} currency=$currencies.3 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.4.conversion_rate/$currencies.2.conversion_rate} currency=$currencies.4 convert=true} {elseif $currency->id == 5} {convertPriceWithCurrency price={$product.price/$currencies.3.conversion_rate} currency=$currencies.0 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.1.conversion_rate/$currencies.3.conversion_rate} currency=$currencies.1 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.2.conversion_rate/$currencies.3.conversion_rate} currency=$currencies.2 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.3.conversion_rate/$currencies.3.conversion_rate} currency=$currencies.3 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.4.conversion_rate/$currencies.3.conversion_rate} currency=$currencies.4 convert=true} {elseif $currency->id == 6} {convertPriceWithCurrency price={$product.price/$currencies.4.conversion_rate} currency=$currencies.0 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.1.conversion_rate/$currencies.4.conversion_rate} currency=$currencies.1 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.2.conversion_rate/$currencies.4.conversion_rate} currency=$currencies.2 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.3.conversion_rate/$currencies.4.conversion_rate} currency=$currencies.3 convert=true} <br /> {convertPriceWithCurrency price={$product.price*$currencies.4.conversion_rate/$currencies.4.conversion_rate} currency=$currencies.4 convert=true} {/if} {/if} Finally I try my best, see the picture. Link to comment Share on other sites More sharing options...
Tatort Posted May 18, 2017 Share Posted May 18, 2017 Hello Didn't work fur Prestashop 1.6 Did you have an other idea ? Thanks 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