WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Prices Over $9999.00 Aren't Accepted (3 posts)

  1. brirare
    Member
    Posted 1 year ago #

    I'm using Woocommerce with the Woostore theme, and everything was working great until I tried entering a product with a price tag of $10,000.00. For whatever reason, prices reaching the ten thousand mark suddenly round down to the tens. So, entering a price of $10,000.00 returns a price on the product page and checkout page of $10.00.

    A majority of the packages the store offers are over $10,000.00 so I really need to figure this one out. I found some code in the woocommerce_core-functions.php file that when removed allowed the display price to show accurately, however, the total price in the cart still showed incorrectly. The code I pulled was:

    $price = apply_filters( 'raw_woocommerce_price', (double) $price );
    
    $price = number_format( $price, $num_decimals, stripslashes( get_option( 'woocommerce_price_decimal_sep' ) ), stripslashes( get_option( 'woocommerce_price_thousand_sep' ) ) );

    Any help would be much appreciated!

    http://wordpress.org/extend/plugins/woocommerce/

  2. brirare
    Member
    Posted 1 year ago #

    I just figured it out. For future reference if anyone else runs into this

    DON'T ENTER COMMAS WHEN ENTERING PRODUCT PRICES

  3. brirare
    Member
    Posted 1 year ago #

    Resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic