X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Price Display Format (https://forum.x-cart.com/showthread.php?t=73460)

ethospar 01-25-2016 08:56 AM

Price Display Format
 
Greetings, running XC 5.2.10, fresh install using the "Digital" template/skin. By default, price displayed for all products everyone displays such as "$1000.00USD"

I want to change this to look like "$1,000.00 USD"

I could even do without the comma on the 1000's if it's too complicated. Just a simple space between the cents and the "USD" would be awesome. I've searched the forums, scoured code, not able to find where this can be altered. One simple space is driving me crazy!

Thank you for your time and attention.

totaltec 01-27-2016 05:02 AM

Re: Price Display Format
 
Store Setup -> Localization -> Currency
admin.php?target=currency

Format selector. That should deal with your comma problem.

Check the Prefix and Suffix, not sure what you have set there.

ethospar 01-27-2016 05:23 AM

Re: Price Display Format
 
Lol... thanks so much Guru. Stupid simple... I totally missed that currency tab under localization. Thank you so much for the reply!!

ethospar 01-27-2016 06:11 AM

Re: Price Display Format
 
Worked, except for spacing before the "USD" suffix. I add a space and save, system removes the spacer when saving.

ethospar 01-27-2016 07:14 AM

Re: Price Display Format
 
Simply adding a "space" using the space bar won't work for this. The solution is to add a blank character to the suffix field.

Hold down ALT then type 0160 (Alt+0160) on the number keypad at the right side of your keyboard.

Entering this blank character will give you "$0.00" USD instead of "$0.00USD" and the system does not remove it like it does a space.

totaltec 01-27-2016 08:04 AM

Re: Price Display Format
 
Great, glads it helped, and glad you figured out the space character. That little gem seems well hidden and counter intuitive that it would be under the heading localization. Not that I can think of a better place to put it...

ethospar 01-27-2016 09:26 AM

Re: Price Display Format
 
If I were a developer, I would change "Payment Methods" to "Payment Settings" and put the "Currency" tab under that section. On the other hand urrency is tied to Units and Formats though so it could be worse placement =) Thanks again for you help and hopefully this will help others searching for answers.


All times are GMT -8. The time now is 02:41 PM.

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