• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Calculate price with tax to price without tax

Calculate price with tax to price without tax 8 years 1 month ago #36546

  • info8504
  • info8504's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hello,

I've managed to copy the price with tax to a field without tax except I can't figure out how to make the calculation to a price without tax.
My code is:
function sync()
{
  var totaal = document.getElementById('totaal');
  totaal_excl.value = totaal.value;
}

The above code is working but how can I divide the totaal price by 1,21 so that the field totaal_excl is displaying the price without tax.
I tried serveral things but often get the message NaN in the totaal_excl field.

Jeroen
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!