Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Hide ".00" on listings but still show correct tax in checkout?

    I want to hide all the .00's that display on my prices, but setting the decimal places in currencies to 0 means GST in checkout is shown without the cents which is misleading the customer.
    So how can we hide it on prices but show it correctly for calculated taxes?

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,682
    Plugin Contributions
    123

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    You can certainly make template changes on (say) the product listing page and product info page to do this. I'd suggest upgrading to 1.5.4 as a higher priority item before you do this though.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    Hi, thanks for the reply, yes an update will happen one day.
    But for now we are keen to make this change, do you know how I can change the listing pages to not show the ".00" ?
    Any advice much appreciated.

  4. #4
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    Quote Originally Posted by Chargin View Post
    Hi, thanks for the reply, yes an update will happen one day.
    But for now we are keen to make this change, do you know how I can change the listing pages to not show the ".00" ?
    Any advice much appreciated.
    Hello did you ever find out how to pull this off?

  5. #5
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    Quote Originally Posted by pricediscrimination View Post
    Hello did you ever find out how to pull this off?
    Hi, no, never got this sorted unfortunately.

  6. #6
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    Quote Originally Posted by Chargin View Post
    Hi, no, never got this sorted unfortunately.
    That's too bad. The .00 is an unnecessary extra on some sites. Would also be nice to know how to change it to USD or AUD, etc. So 56 USD, instead of $56.00.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Hide ".00" on listings but still show correct tax in checkout?

    Quote Originally Posted by pricediscrimination View Post
    That's too bad. The .00 is an unnecessary extra on some sites. Would also be nice to know how to change it to USD or AUD, etc. So 56 USD, instead of $56.00.
    You can mess with the "format" function in the /includes/classes/currencies.php file. Be careful about rounding it to 0 decimals vs merely displaying 0 decimals.

    Or simply edit the product_listing.php module file to hack the ".00" out of the price returned here:
    Code:
    case 'PRODUCT_LIST_PRICE':
            $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    Of course, if your prices aren't actually all ending in .00 then that'll be harder to do ... but if that's the case then I struggle to understand why you're wanting to remove "only .00" if all prices aren't always .00 in the first place.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 why my source show Chinese in "page" but junks in "original"?
    By lina0962 in forum General Questions
    Replies: 0
    Last Post: 19 Jun 2013, 08:15 PM
  2. v150 Tax amount displayed but not the word "Tax"
    By clint6998 in forum General Questions
    Replies: 2
    Last Post: 8 Sep 2012, 11:17 PM
  3. Can I show "Tax incl" and "tax not included" right behind the price
    By elektroarena in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 19 Jul 2012, 08:21 AM
  4. Replies: 0
    Last Post: 19 May 2007, 11:50 AM
  5. Replies: 2
    Last Post: 10 Feb 2007, 05:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR