blackhat Posted March 9, 2004 Share Posted March 9, 2004 Is there a way to round them up/down to nearest currency unit ? Like this: $4.98 --> $5.00 Thanks Link to comment Share on other sites More sharing options...
TomThumb Posted March 9, 2004 Share Posted March 9, 2004 The easiest way is when you are entering the products. If you mean you want whole number prices both with and without tax then change the updateGross function in admin/categories.php. Change the 4 in doRound(grossValue,4) to a zero. New function updateGross line 441. function updateGross() { var taxRate = getTaxRate(); var grossValue = document.forms["new_product"].products_price.value; if (taxRate > 0) { grossValue = grossValue * ((taxRate / 100) + 1); } document.forms["new_product"].products_price_gross.value = doRound(grossValue, 0); } while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.