View Single Post
  #1  
Old 03-23-2012, 03:52 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Post Hide numbers after the decimal point in price

Hy,
I have a solution for the hiding of the numbers after the decimal point in the product price, for those, who dont want to use it.
You must apply the following SQL-query:
Code:
UPDATE xcart_config SET variants="2.,:1,999.53\n2.:1999.53\n2, :1 999,53\n2,.:1.999,53\n0 :1 999" WHERE name="number_format";

It will add new selection entry to the "General Settings" -> "Appearance" options page for the number format option.

You can also add the "0 :1 999" manually to a new line when you search after the xcart_config entry for example in phpMyAdmin.

Note that it is recommended to back up the database before making any changes!

I use X-Cart 4.4.4 and I did not test other versions
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote