JavaScript for E-Commerce

Back | Contents | Next

The Ordering Process - Modifications to item-initial.html

The item-initial.html file needs one tiny piece of JavaScript code added to it.

Source

New or modified code is displayed in bold text.


<html>

<head>

<script>
<!--
top.myOrderList.itemsVisible = true;
-->
</script>

</head>

<body>

</body>

</html>
			

Description

The code that we added sets the myOrderList.itemsVisible flag to false, so that if the customer presses the "Clear" button, the myOrderList.clear method will not attempt to uncheck a group of checkboxes that do not exist.


Back | Contents | Next

If you find this tutorial useful and want to show your apprectiation, a small donation is most welcome.