Selling a cloth in 20cm lengths with the user inputing the length in metres. The following will allow a length to be input in metres (like 1.23 metres) and will round it up to the next 20cm. The actual length orderd in metres and the number of 20cm units will be displayed in the Other Info Prompt. Put the following code into Act_Primary.html (just above the tag). Save the following chunk of code as Cloth_ProductLine.html NETQUOTEVAR:INCLUDE Act_ProductSeparator.html NETQUOTEVAR:ENDSEPARATOR NETQUOTEVAR:PRODUCTFORMBEGIN NETQUOTEVAR:TEMPLATEBEGINXML NETQUOTEVAR:PRODUCTIMAGE NETQUOTEVAR:PRODUCTNAME NETQUOTEVAR:PRODUCTREF
NETQUOTEVAR:PRODUCTDESCRIPTION NETQUOTEVAR:EXTINFOLINK
NETQUOTEVAR:EXTINFOBUTTON
NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK NETQUOTEVAR:PRICEEXPLANATION
NETQUOTEVAR:PRODUCTPRICE NETQUOTEVAR:DATEPROMPT NETQUOTEVAR:CARTERRORXML Enter length in Metres (e.g. 1.2)
NETQUOTEVAR:ADDTOCARTBUTTON
NETQUOTEVAR:TEMPLATEENDXML NETQUOTEVAR:PRODUCTFORMEND NETQUOTEVAR:NEXT Now in your product details: Select Cloth_ProductLine.html as the product template. Set the product price to be correct for 20cm of fabric. Set the Other Info Prompt to be "Length" Set the Price Prompt to be "Price per 20cm:". Now when the customer enters a length it will be rounded to the next 20cm and the correct number of 20cm units will be added to the cart. In addition the Otheer Info Prompt will be set to contain the actual number of metres of cloth ordered and number of 20cm units.