Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

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

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › I want to remove the comma and the last digit in price

Tagged: CLP, currency, product price

  • This topic has 4 replies, 2 voices, and was last updated 13 years, 10 months ago by matiasgt.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 4, 2011 at 2:15 am #3716
    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.

    July 4, 2011 at 4:24 am #33936
    amin007
    Participant

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

    July 4, 2011 at 12:07 pm #33937
    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

    July 5, 2011 at 1:05 am #33938
    amin007
    Participant

    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, '');

    July 5, 2011 at 3:05 am #33939
    matiasgt
    Member

    Just perfect

    Works perfectly

    TY a lot

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ