Job description
In the online store on individual products we need a field into which the customer can enter the width of the section in linear meters (to the second decimal place).
After entering the width, the total price should be calculated with:
- 1 piece is 1.22 mb
- above 0.61 mb we count as 1 piece, below as 0.5 pieces
- finally, the price for the whole pieces should be calculated, and if it comes out so from the calculation - for half of the section:
e.g. 2.60 mb divided by 1.22 = we count as 2.5 pieces and this is the price the customer should ultimately see; with a width of 3.06 mb we count 3 pieces.