Hi all,
I've created my own pages with products and "add to cart" buttons, it works fine.
Anyway, I would like to add a bit that shows a summary of the cart contents, such as number of items and total cart value. I've tried inserting a bit of code that I've seen:
<script language="JavaScript">
<!--
document.write("Items:" + getCartItem(3)+" <br>");
document.write("Value:" + getCartItem(1));
// -->
</script>
see my little test page: http://www.peakelec.co.uk/acatalog/jz_test.html
But it just shows zero all the time for both the number of items and the value.
What am I doing wrong?
Cheers,
I've created my own pages with products and "add to cart" buttons, it works fine.
Anyway, I would like to add a bit that shows a summary of the cart contents, such as number of items and total cart value. I've tried inserting a bit of code that I've seen:
<script language="JavaScript">
<!--
document.write("Items:" + getCartItem(3)+" <br>");
document.write("Value:" + getCartItem(1));
// -->
</script>
see my little test page: http://www.peakelec.co.uk/acatalog/jz_test.html
But it just shows zero all the time for both the number of items and the value.
What am I doing wrong?
Cheers,
Comment