Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • AWESOME!

    You are the MAN,… Thank Bro this ‘things’ is realy realy precious to all.

    BUT what about risk? Is this a safe way to ride on?

    Thread Starter moziq

    (@moziq)

    Hey it’s work to, but it’s only remove “decimal price” on wp-ecommerce, in my theme the decimal still show up.

    But your way guide me into another decimal sets for the theme, and I found this still on Function.php:

    function boutique_price(){
    	global $post, $boutique_active_plugin_name, $wpdb;
    	$price = 0;
    	switch ($boutique_active_plugin_name){
    ...
    ...
    ...
    ...
    		case 'wp_ecommerce':
    			$price = get_post_meta( $post->ID, '_wpsc_special_price', true ) ? get_post_meta( $post->ID, '_wpsc_special_price', true ) : get_post_meta( $post->ID, '_wpsc_price', true );
    			$price = apply_filters( 'et_wp_ecommerce_price_format', number_format( $price, 0 ), $price );
    		break;
    	}
    	return $price;
    }

    sets the value on

    number_format( $price, 0 ), $price );

    from “2” to “0”

    Thank Bro..

    Thread Starter moziq

    (@moziq)

    Hey it’s on database, Thank’s bro.

    But I have another question, is it possible to remove “decimal separator” behind the price?? If it’s possible how can I do that?

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