Title: [Plugin: WP e-Commerce] Change price!!!
Last modified: August 20, 2016

---

# [Plugin: WP e-Commerce] Change price!!!

 *  Resolved [mrdinh2008](https://wordpress.org/support/users/mrdinh2008/)
 * (@mrdinh2008)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/)
 * **Can I change my price xx,00 to xx? Remove two zero??? Thanks**
 * [http://wordpress.org/extend/plugins/wp-e-commerce/](http://wordpress.org/extend/plugins/wp-e-commerce/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [razrgeezer](https://wordpress.org/support/users/razrgeezer/)
 * (@razrgeezer)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150648)
 * This is something you can do in either your presentation settings under currency
   or in your template files.
 * I’ve seen this done on the icondock.com website. Which is probably the most beautiful
   looking WordPress e-Commerce site around.
 *  [thethingfromanotherworld](https://wordpress.org/support/users/thethingfromanotherworld/)
 * (@thethingfromanotherworld)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150676)
 * …/wp-content/plugins/wp-e-commerce/wpsc-includes/processing.functions.php
 * line ~26
 * `$decimals = 2; // default is 2`
 * change to:
 * `$decimals = 0; // default is 2`
 *  [VonBlackHill](https://wordpress.org/support/users/vonblackhill/)
 * (@vonblackhill)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150702)
 * is really sad
    this bug
 * cause here in chile…
    there is no way to split a coind in 0.5 and 0.5 pesos
 *  [Mukesh Panchal](https://wordpress.org/support/users/mukesh27/)
 * (@mukesh27)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150743)
 * hyyy mrdinh2008,
    U have to change display-items-functions.php,
 * <div class=’wpsc_floatleft’ style=”width:85px;”>
    <label><?php _e( ‘Price’, ‘
   wpsc’ ); ?>:</label> <input type=’text’ class=’text’ size=’10’ name=’meta[_wpsc_price]’
   value='<?php echo ( isset($product_data[‘meta’][‘_wpsc_price’]) ) ? number_format((
   float)$product_data[‘meta’][‘_wpsc_price’], 2, ‘.’, ” ) : ‘xx.00′; ?>’ /> </div
   >
 * **to**
 * <div class=’wpsc_floatleft’ style=”width:85px;”>
    <label><?php _e( ‘Price’, ‘
   wpsc’ ); ?>:</label> <input type=’text’ class=’text’ size=’10’ name=’meta[_wpsc_price]’
   value='<?php echo ( isset($product_data[‘meta’][‘_wpsc_price’]) ) ? number_format((
   float)$product_data[‘meta’][‘_wpsc_price’], 0, ‘.’, ” ) : ‘xx’; ?>’ /> </div>
 * try this u get answer…
 *  [tyggis](https://wordpress.org/support/users/tyggis/)
 * (@tyggis)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150744)
 * Dont touch the core files. Its better to add this to functions.php:
 * /**
    * Hide/Remove Decimal Point on Product Price by [http://www.agusmu.com](http://www.agusmu.com)**/
   add_filter( ‘wpsc_toggle_display_currency_code’, ‘amu_hide_decimal_point’ ); 
   function amu_hide_decimal_point( $args ) { $args[‘display_decimal_point’] = false;
   return $args; }
 *  [strang3r](https://wordpress.org/support/users/strang3r/)
 * (@strang3r)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150754)
 * [@tyggis](https://wordpress.org/support/users/tyggis/)
 * Though I am not for your above fix but its dont even work too when I add it in
   theme function.php
 * will you please tell me how can I replace decimal with comma? for most arabic
   country.. its need.
 * And this comma is not working when I add it from settings. Its still showing 
   decimal.
 * This is what I am looking for something like…
    Decimal separator price: 1,000.00
   Comma separator Price: 1,000,00
 * Thanks.
 * WP Ecommerce V3.8.8
 *  [strang3r](https://wordpress.org/support/users/strang3r/)
 * (@strang3r)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150755)
 * I tried replacing some codes in core file in plugin but that is not even working.
 *  Plugin Author [Justin Sainton](https://wordpress.org/support/users/justinsainton/)
 * (@justinsainton)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150757)
 * Try adding this single line to your functions.php file.
 * `add_filter( 'wpsc_modify_decimals', '__return_zero' );`
 *  [strang3r](https://wordpress.org/support/users/strang3r/)
 * (@strang3r)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150758)
 * This not working….
 *  [strang3r](https://wordpress.org/support/users/strang3r/)
 * (@strang3r)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150759)
 * its botIque theme

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘[Plugin: WP e-Commerce] Change price!!!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

 * 10 replies
 * 8 participants
 * Last reply from: [strang3r](https://wordpress.org/support/users/strang3r/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-e-commerce-chane-price/#post-2150759)
 * Status: resolved