osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Display Selected Decimal Places

This is a discussion on Display Selected Decimal Places within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Sometimes you don`t want to display the price with the set number of decimal places. This modification allows you to ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-12-2008, 05:22 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,969
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Display Selected Decimal Places

Sometimes you don`t want to display the price with the set number of decimal places.

This modification allows you to select how many places to display.

I`ve also included a function to check if a value would be incorreect if displayed as such so it can be displayed correctly.

IE with places set to 0, 70.00 will display as £70, but 50.49 will display as £50.49

I`ve made this backward compatible, so if you don't make changes to a call it will be un-effected.

For Oscommerce 2.2rc1

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
decimal values andresgr osCommerce 2.2 Modification Help 0 06-30-2004 08:26 AM
Bestseller according to main category selected Anonymous osCMax v1.7 Discussion 0 06-16-2004 07:37 AM
No database selected!?! Hornet osCMax v1.7 Discussion 1 12-19-2003 08:07 AM
Places to Start for Newbee JackKinCO osCommerce 2.2 Modification Help 1 06-03-2003 07:48 AM
displaying selected products within a category phlanet osCommerce 2.2 Modification Help 0 10-30-2002 01:13 PM


All times are GMT -8. The time now is 09:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax