Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Prices


blackhat

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...