dynamic notice calculation
-
Hello
I am trying to do the calculations and display the sum of the width and height of my product.
I created NOV variable called Area that is the sum of the width and height after it was automatically transformed in feet. My area is calculated only in SQ FT.
I have the option for clients to enter sizes in Inches as well, then is transformed in ft then is calculated in SQ FT.
Question is :
How do I round up the total SQ FT if the clients choose inch as unit of measurement. I need to round up to a full sqft and then do the calculation of the priceEg: 8″ x 3″ = 0.17 sq ft . I need this to be rounded up to 1 sq ft
here is the formula I use to display the total sq ft :
Total Square Feet:
{# var area=data.uni_nov_cpo_area;
if(area) { #}
<b>area.toFixed(2)
sq ft </b>
{# } #}Thank you
- The topic ‘dynamic notice calculation’ is closed to new replies.