0

As the question, I'm coding such as (value x) * (value y) to directly display the result in HTML in software.

But the software doesn't support the script tag. can we simply use HTML tag achieve function.

In the software I have the subtotal example $55.25, but I want it shows $$65.00 (calculate by $55.25 / 0.85)

enter image description here

6
  • 5
    HTML is just a markup language - it cannot do calculations. Commented Jul 10, 2017 at 19:53
  • 1
    What software are you using that uses HTML but doesn't support script? Commented Jul 10, 2017 at 19:54
  • it's shipment software called shipstation, I am creating the packing slip template but it doesn't support the script tag Commented Jul 10, 2017 at 19:57
  • How are you creating the template? The ShipStation API seems pretty robust and looks like it can use command line (thus you can parse the data or pass it to another program) ... Commented Jul 10, 2017 at 20:04
  • ShipStation allow us to create template with HTML. The order date comes from the NetSuite, however the the price had been modified by percentage before import into NetSuite, so ShipStation receive the price doesn't match to customer's purchase price which I expect to show the purchase price on the template. Commented Jul 10, 2017 at 20:25

1 Answer 1

1

HTML cannot do math - it is a markup/layout language. Whatever logic you are using that is creating the items to add to the template will need to also do the math and send the result to the template.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.