Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Need a space in money field ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mcrozz
Starting Member

Sweden
8 Posts

Posted - October 12 2007 :  12:24:47  Show Profile  Visit mcrozz's Homepage  Reply with Quote
Hi...
I have figured out all the problems so far with the help from you all. Here is onother one, need to make a space where my currency are displayed se the link.
http://www.compool.se/images/space.jpg

Welcome to check out the whole site, for comments @
http://www.tillverkaren.se/webshop

Thanks to good support.

//Mcrozz

//Mcrozz

mcrozz
Starting Member

Sweden
8 Posts

Posted - October 14 2007 :  18:55:54  Show Profile  Visit mcrozz's Homepage  Reply with Quote
Yes....... the solution is to enter the currency table and edit in a "blank space", just after the currency symbol.
Hmmmm.

But it din´t work.

//Mcrozz
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - October 14 2007 :  19:01:45  Show Profile  Visit devshb's Homepage  Reply with Quote
(d'oh; the nbsp is getting blanked out by the forum html, where you see [SPACE] below, replace that with:
ampersand sign
followed by
nbsp
plus a semi-colon directly after
ie the html non-breaking-space tag/code
)

you also need it to be a non-breaking space rather than a normal space, otherwise sometimes it'll spill over to a separate line between the symbol and the amount.

try this...

edit shopproductsubs2.asp

and in this function:
Function ShopFormatCurrency


change this:
if GetSess("Newcurrencysymbol")<>"" then
shopformatcurrency=GetSess("Newcurrencysymbol") & formatNumber (tamount, decimalpoint)
elseif getconfig("XCurrencySymbol") <> "" then
shopformatcurrency=getconfig("XCurrencySymbol") & formatNumber (tamount, decimalpoint)
else
shopformatcurrency="$" & formatNumber (tamount, decimalpoint)
end if


to this:
if GetSess("Newcurrencysymbol")<>"" then
shopformatcurrency=GetSess("Newcurrencysymbol") &"[SPACE]"& formatNumber (tamount, decimalpoint)
elseif getconfig("XCurrencySymbol") <> "" then
shopformatcurrency=getconfig("XCurrencySymbol") & "[SPACE]"& formatNumber (tamount, decimalpoint)
else
shopformatcurrency="$" & "[SPACE]"& formatNumber (tamount, decimalpoint)
end if

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on October 14 2007 19:06:13
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00