We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    Quote from: quantikev at Mar 26, 2008, 05:24 PM

    Ok, I now have a working MODx based treasurechest store here if your interested in taking a look.

    Now, How can I make the ’cart icon’ at the top right of that page show the cart in a similar manner to what happens when the ’view cart’ link in TreasureChest is clicked?

    Thank you,
    Kevin

    I think try this as the href for that anchor tag:
    http://www.sonomaskincareproducts.com/index.php?id=5&keepThis=true&TB_iframe=true&height=250&width=400
    

    and give the anchor a class of "thickbox"
      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 24197
      • 21 Posts
      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
        • 27330
        • 884 Posts
        @kevin, if you using Ditto, like in the demo site, you’ll need to use [+introtext+] Vs. [*introtext*] that’s global for modx whenever u use Ditto.

        also for the Javascript use [[treasureChest? &service=`global`]] in the template header.
        you can learn about this service here:
        http://www.treasurechestcart.com/documentation/parameters.html

        (use &service=`global` and not &service=`pdt` as in the example code, i think its a typo)
          • 27330
          • 884 Posts
          Dr. Scotty Delicious what do I need to change to have the links add/empty cart link visible at all times on the page whether its empty or not.?
          also can u share the uncompressed version of the js?
            • 24197
            • 21 Posts
            Thank you sinbad - I seem to have ’omitted’ that part from my memory when I read the docs. grin

            I’ve another question re: treasurechest placeholders & ditto TV’s:

            In your Store Demo, you copied HTML directly from the product page (for add to cart & thumbnail). Is there anyway to use placeholders instead of the HTML? Either through the introtext, tv’s, or another way?

            Screenshot attchd.

            Thanks again for all the help!
              • 27330
              • 884 Posts
              Its not my demo store, it’s scotty’s, I’m just using this sweet tool of his. I don’t think you can use placeholders in ditto call with this version of TC, I tried that to before I found the HTML way. I think every modx user prefer placeholders you know smiley maybe scotty will make it for next version if we ask nice.

              but I think if it’s not in ditto placeholders should work for you.
                • 17717
                • 433 Posts
                Hi all,

                From what I have seen from the demo TC is perfect for what I need, I am 90% through setting up my site to use TC, the one thing I am having problems with is the cart, I can’t seem to get it to display. I get a browser alert box (empty message) on clicking the add to cart button.

                I am looking over again at the parameters, seeing if I can figure it out, also this thread which seems to be very useful.

                Thanks
                Lee
                  http://www.blend.uk.com | Web Design by Blend
                  • 27330
                  • 884 Posts
                  Lee if you kept everything default, and didn’t try it yet, you’ll need to have <div class="treasure_cart">&nbsp;</div> somewhere on the page where you want the cart to be shown.
                    • 17717
                    • 433 Posts
                    Hi Sinbad,

                    Got that in the main template now, just to be 100% sure it is there, still no joy sad

                    p.s. don’t suppose I could email you a link, really lost as to what else to try, everything is in place, loading the TC js file fine, all config in place, chunks etc.... still not working.

                    Lee
                      http://www.blend.uk.com | Web Design by Blend
                      • 27330
                      • 884 Posts
                      Lee I’m not the the developer, but if you want i don’t mind taking a look. sometimes a second eye can notice something one missed.
                      PM me the login if you want and I’ll see if I can find the issue.