X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to change the position of alternative currency symbol (https://forum.x-cart.com/showthread.php?t=31161)

vicove 05-14-2007 09:42 PM

How to change the position of alternative currency symbol
 
How to change the position of alternative currency symbol? ( i need the symbol after the price, like - 100$m not $100)
Thanks in advance!

carpeperdiem 05-15-2007 04:07 AM

Re: How to change the position of alternative currency symbol
 
Try editing /skin1/customer/main/alter_currency_value.tpl

I would start with this code:

Code:

<span style="WHITE-SPACE: nowrap">{/if}{$config.General.alter_currency_symbol} {math equation="altercurrencyvalue*rate" altercurrencyvalue=$alter_currency_value rate=$config.General.alter_currency_rate format="%.2f" assign=alter_price}{$alter_price|formatprice}{if $plain_text_message eq ""}</span>

Upon quick examination, would you make it look like this?


Code:

<span style="WHITE-SPACE: nowrap">{/if}{math equation="altercurrencyvalue*rate" altercurrencyvalue=$alter_currency_value rate=$config.General.alter_currency_rate format="%.2f" assign=alter_price}{$alter_price|formatprice}{$config.General.alter_currency_symbol} {if $plain_text_message eq ""}</span>

Does this work? (basically taking the {$config.General.alter_currency_symbol} and moving it to after the formatted price) -- ? I don't use alt curr symbol, so I'm just thinking out loud. Let me know if this works for you.

Jeremy

vicove 05-15-2007 10:42 AM

Re: How to change the position of alternative currency symbol
 
Ok, this works. Thank you.
Is it possible to change the places of primary currency and alternative currency? Paypall allow me to pay only in euro, but here in Bulgaria the official currency is BGN.

carpeperdiem 05-15-2007 10:58 AM

Re: How to change the position of alternative currency symbol
 
Look in product.tpl and other templates where the price is displayed... you will see where it gets and formats the price (from other templates)... you should be able to manipulate what is displayed by messing with these templates. Make sure you have backups before you do anything.

vicove 05-16-2007 02:19 AM

Re: How to change the position of alternative currency symbol
 
Ok, now i change the position - first is alternative currency, secind is primary currency( so people can see the price in euro if decide ti pay through pay pal)
but now look strange if is filled market price
Market price: euro
Our price: Bulgariana leva ,( Euro)

how to convert market price to be shown in alternative currency?

dianaal 08-06-2007 04:38 PM

Re: How to change the position of alternative currency symbol
 
Quote:

Originally Posted by carpeperdiem
Look in product.tpl and other templates where the price is displayed... you will see where it gets and formats the price (from other templates)... you should be able to manipulate what is displayed by messing with these templates. Make sure you have backups before you do anything.


I want to implement this too but I don╢t know in which templates I must make the changes? could you help me?

Thank you in advance.

Diana
X-Cart version 4.0.19

carpeperdiem 08-06-2007 04:58 PM

Re: How to change the position of alternative currency symbol
 
Quote:

but I don´t know in which templates I must make the changes?

Ah... that's why you must learn how to use webmaster mode. Otherwise, you won't get too far.


All times are GMT -8. The time now is 11:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.