After creating a category based store similar to
your demo, I realized the ’add to cart’ feature was still not working.
I inserted the html ’add to cart’ code generated by treasurechest into the summary field of the individual product.
I placed the [
+introtext
+] placeholder into the ditto chunk template, and called it with ditto on the category page.
I then realized your store demo page also contained the javascript in the head section for the cart.
So did you also have to add this code manually? Or did I miss another step (like including the thumbnail image) which would have called the code automatically?
<script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
<script type="text/javascript" charset="utf-8">var cart_doc = "index.php?id=5";</script>
<script type="text/javascript" src="assets/snippets/treasure_chest/script/treasurechest.js"></script>
<link rel="stylesheet" type="text/css" href="assets/snippets/treasure_chest/style/thickbox.css" />
I appreciate it,
Kevin