Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

I want to remove the comma and the last digit in price

(5 posts) (2 voices)
  • Started 10 months ago by matiasgt
  • Latest reply from matiasgt
  • Possible Solutions (Related Topics):
    1. estore - remove price in check out page
    2. Base price is missing for digital product variations
    3. Remove the word "Price" in Fancy3
    4. Cannot remove shipping cost from digital product
    5. Customize "instant digital product delivery" : remove some content

Tags:

  • CLP
  • currency
  • product price
  1. matiasgt
    Member

    Hi

    Is there a way to remove the comma (,) and the numbers that follow after the comma to show the price. For example when i put 15000 in the product information appears 15000,00 in my blog. Im using CLP as a currency (chilean pesos) and we dont use cents.

    Posted 10 months ago #
  2. amin007
    Key Master

    Please post a link to the page where I can go and view this.

    Posted 10 months ago #
  3. matiasgt
    Member

    Sure
    The link is http://www.ellaflor.cool-themes.net.

    In the "Ejemplo 3" and "Ejemplo 4" looks incorrectly and when u add a new product to the cart looks bad too

    Ty

    Posted 10 months ago #
  4. amin007
    Key Master

    Please open the "wp_eStore1.php" file from eStore and search for the following line of code:

    return $symbol.number_format($price, 2, $decimal, ',');

    This is the function that tells eStore how to show the price (by default it shows prices to two decimal places). You can change the above line with the following and it won't show any decimal places or the comma:

    return $symbol.number_format($price, 0, $decimal, '');
    Posted 10 months ago #
  5. matiasgt
    Member

    Just perfect
    Works perfectly

    TY a lot

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin