We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23963
    • 4 Posts
    Hello all,
    I have MODx site running, and am trying to set up ways for people to buy full memberships. I am trying to use treasureChest to do this, and everything displays in my project page, but "Add to Cart" does nothing. I have my <div class="cart"> </div> in my html, and have specified "cart" as the class to use in configuration.
    Here is the code I’m using:
    <p>[[TreasureChest? &item=`2`]]
    
    </p>
    <div class="detail">
    <p>Price $[+treasure.amount+]</p>
    <p class="product-add">[+treasure.add+]</p>
    <div class="cart">
    
    </div>
    </div>


      • 4041
      • 788 Posts
      At first glance, looks like tinymce has changed the snippet call for you smiley You may have to disable the rich text editor for that document so that it doesn’t get remangled upon saving.

      Try changing the &amp; to & in the snippet call and see if that helps:

      [[TreasureChest? &item=`2`]]
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 23963
        • 4 Posts
        No, that didn’t change it either. I tried putting the <div> somewhere in my template, but that didn’t do anything either.
        In the configuration it mentions Add to cart and Empty cart CSS classes. I didn’t see anything in the docs about those, should they be implemented.