Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to delete price decimals ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-25-2010, 02:22 AM
 
burak.82 burak.82 is offline
 

Member
  
Join Date: Dec 2010
Posts: 15
 

Thumbs up How to delete price decimals ? {Solved}

Hi,

My price in my site shows the following;

17500.00Ft

and i would like to change it as;

17 500 Ft

is this possible?

tia

burak
__________________
X-Cart Gold 4.4.1
Reply With Quote
  #2  
Old 12-27-2010, 06:44 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to delete price decimals ?

Try the following SQL:

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";
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following 2 users thank qualiteam for this useful post:
burak.82 (01-03-2011), Shehzad (01-03-2011)
  #3  
Old 12-28-2010, 02:42 AM
 
burak.82 burak.82 is offline
 

Member
  
Join Date: Dec 2010
Posts: 15
 

Default Re: How to delete price decimals ?

thanks alex but where i am going to put this command to ?
__________________
X-Cart Gold 4.4.1
Reply With Quote
  #4  
Old 12-28-2010, 02:55 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to delete price decimals ?

Quote:
Originally Posted by burak.82
thanks alex but where i am going to put this command to ?

This is SQL patch that needs to be applied via X-Cart admin back end or phpMyAdmin.

It will add new selection entry to the Appearance options page for the number format option.

Note: BACKUP the database first!
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
burak.82 (01-03-2011)
  #5  
Old 01-03-2011, 02:54 AM
 
burak.82 burak.82 is offline
 

Member
  
Join Date: Dec 2010
Posts: 15
 

Default Re: How to delete price decimals ?

Added the line you gave me to a .txt file and saved it as patch.sql, before backed up the DB, applied the patch and voila works.

Big thanks to you

cheers
__________________
X-Cart Gold 4.4.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:19 PM.

   

 
X-Cart forums © 2001-2020