VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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
1898 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