zinor Posted October 15, 2011 Posted October 15, 2011 hello would anyone tell me how to make a space between the price and "USD" ? i mean instead of 200USD it be 200 USD . TKS
MrPhil Posted October 15, 2011 Posted October 15, 2011 In your currency description for US dollars, you have the "currency suffix" as "USD"? Try making it " USD" (with a leading blank). If that doesn't work, try "& nbsp;USD" (remove the space between & and nbsp -- this idiot forum software insists on eating it as part of the post).
zinor Posted October 15, 2011 Author Posted October 15, 2011 In your currency description for US dollars, you have the "currency suffix" as "USD"? Try making it " USD" (with a leading blank). If that doesn't work, try "& nbsp;USD" (remove the space between & and nbsp -- this idiot forum software insists on eating it as part of the post). thank you Phil , that was ok for me but i dont know why it show 200 us? , how to increase the capacity of currency field ?
yaniv14 Posted October 15, 2011 Posted October 15, 2011 Some old trick from years ago, if you want to add a space and the space bar is not doing the job, you can press ALT & 255 (255 are coming from the keyboard arrows keypad) keep ALT pressed until you finish the 255. in you case you don't need to add it to the file(s), you can just enter it in the admin menu (where you have the $ mark). I hope it helps.
MrPhil Posted October 15, 2011 Posted October 15, 2011 Some old trick from years ago, Frankly, I would avoid such tricks. Back then, most PCs had the same nonstandard code page (ASCII + selected Latin-1 + some graphics). If that puts an xFF character into your file or database, there's no telling what will happen when any given character encoding is used to display the page. Maybe you'll get something, maybe you'll get an invalid character error, maybe you'll get garbage, maybe your site or browser will vomit all over itself. It's always best to use something independent of whatever encoding might be used, which means an HTML entity for anything not ASCII. Language support pages are OK to hard code encoding-specific characters, as you're specifying what encoding will be used, but you should avoid that in code or database entries. I've seen this done many times by stupid programmers -- they put hardcoded accented or otherwise non-ASCII characters in the code (» is a favorite), and then when someone uses their code (theme, mod, add-on, etc.) with a different character encoding than the programmer happens to use, strange things happen.
zinor Posted October 16, 2011 Author Posted October 16, 2011 thank you all , the only solution for me was but due to low capacity of unit of currency filed it did now show the complete mass of it as i told you above , should i change it from the database ?
MrPhil Posted October 17, 2011 Posted October 17, 2011 If it doesn't fit, you could either find how to increase the available space, or change formats ($200 instead of 200 USD). If you are dealing only with US dollars, that could work, but if you have dollars from other countries that could be confusing.
zinor Posted October 18, 2011 Author Posted October 18, 2011 If it doesn't fit, you could either find how to increase the available space, or change formats ($200 instead of 200 USD). If you are dealing only with US dollars, that could work, but if you have dollars from other countries that could be confusing. unfortunately my unit currency is not USD and it is long ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.