Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to change the position of alternative currency symbol

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-14-2007, 09:42 PM
 
vicove vicove is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 4
 

Exclamation 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!
__________________
x-cart-4.16 pro
Reply With Quote
  #2  
Old 05-15-2007, 04:07 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
chamberinternet (08-12-2010)
  #3  
Old 05-15-2007, 10:42 AM
 
vicove vicove is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 4
 

Default 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.
__________________
x-cart-4.16 pro
Reply With Quote
  #4  
Old 05-15-2007, 10:58 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 05-16-2007, 02:19 AM
 
vicove vicove is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 4
 

Default 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?
__________________
x-cart-4.16 pro
Reply With Quote
  #6  
Old 08-06-2007, 04:38 PM
 
dianaal dianaal is offline
 

Member
  
Join Date: Sep 2004
Posts: 11
 

Default 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
__________________
Diana

xcart v4.0.19 [win]
Reply With Quote
  #7  
Old 08-06-2007, 04:58 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:28 PM.

   

 
X-Cart forums © 2001-2020