Results 1 to 2 of 2

Thread: Correcting price number with commas.

  1. #1
    Thread Starter
    Junior Member fedeogue's Avatar
    Join Date
    Jan 2012
    Posts
    45
    Thanks
    3
    Thanked 1 Time in 1 Post

    Correcting price number with commas.

    Hi,
    My site is www.mercadobarcos.com.
    I have added the function to correct prices showed in the child theme tutorial 2:
    http://www.appthemes.com/blog/classi...torial-part-2/

    If a price is $1000, the function turns it into $10,000.00.
    I like this function because it adds the commas without messing with the advanced search for price.
    However, my site is only for boats, no user will ever enter a price with cents.
    The cents increase the price tag size and messes up the whole design layout for the loop ad.

    I need a function that adds the commas, but ignores the cents.
    Example, $10000 to $10,000 (no cents)

    Can someone help me?

    Thanks

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Limiting the number of characters in the price field?
    By pets4u in forum ClassiPress General Discussion
    Replies: 3
    Last Post: May 31st, 2012, 10:32 AM
  2. [SOLVED] Insert comma into Number (price)
    By toms in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: October 15th, 2011, 09:29 AM
  3. Correcting issue with pop up bubble
    By koldsnapz in forum Report JobRoller Bugs
    Replies: 18
    Last Post: September 5th, 2011, 09:58 AM
  4. limit number of characters in Price tag
    By dmask in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 15th, 2011, 01:37 AM
  5. Pricing Structure -- % of Sellers ad Price & Fixe Price per Ads
    By tech9 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 28th, 2010, 02:38 PM