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
    ScottyDelicious Reply #61, 17 years ago
    @rfoster
    Thanks for that link, bookmarked!

    Have you used this library before, and if so, what are your thoughts on it?
      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 24935
      • 160 Posts
      Quote from: Dr. at Sep 02, 2009, 11:24 PM

      Have you used this library before, and if so, what are your thoughts on it?

      I haven’t used it yet.

      The notes say it doesn’t include support for recurring payments yet, but it looks like a good starting point.
        • 10152
        • 156 Posts
        hello, I read the doc, but ... undecided

        ...but the problem is that is says the pdt service must be uncached, and once done, [+treasure.final_items+] and all placeholders are empty now. huh

        I struggle (in happiness) on how to retrieve those values. Is it possible to fetch them with another snippet or add-on ? Thanks in advance

        EDIT : calling it cached works, but might be unsafe


          • 36875
          • 5 Posts
          Hi,

          I hope I’m in the right place to post this. If not, please let me know.

          I have got TreasureChest installed and it’s working. I like it a lot. However, I have now been stuck for several hours. The "add to cart" link doesn’t do anything. What makes it hard to troubleshoot this, is that I don’t really understand what it’s supposed to be doing in the first place. The link has an onclick that does "return false". I don’t get how that could possibly do anything, but I have checked Scotty’s example on the treasurechest site (http://treasurechestcart.com/demo-product1.html) and the html for its "add to cart" link looks just like mine, so I guess the problem lies elsewhere.

          I should mention that I have edited the treasurechest.class.php and the snippet, so that multiple items can be displayed on one page, without there being separate pages for those articles. I got that to work but maybe I’ve knocked something over in the process. I now have a page with three items on it, which each have their own "add to cart" link. Maybe that is not possible?

          I can see treasurechest.js is in the header of the page which has the items on it. I guess a function in that script needs to be called? But how? Can someone point me in the right direction?
            • 36875
            • 5 Posts
            I eventually solved the problem by throwing away some files and putting them back again, going over all the snippet calls to make sure they were what I intended. I’m not really sure what changed... but it’s working now. Can’t say I find this completely reassuring but I will see how it goes for the next couple of days.

            I am in the process of modifying TreasureChest. I have added a function called "AllProducts", which sends all products in the database to a page, regardless of whether they have their own subpage or not. I intend to make some other minor modifications.

            My question is: what should I do with my modified TreasureChest when I’m done? Do other people want this, or I am I the last person left who’s using TC? Should I upload it somewhere? But the modifications aren’t very big, so there’s no way this can be considered a NEW snippet/add-on. Should I try to contact Scotty? Please advise, I have no idea how all this works.
              • 26931
              • 2,314 Posts
              My question is: what should I do with my modified TreasureChest when I’m done? Do other people want this, or I am I the last person left who’s using TC? Should I upload it somewhere? But the modifications aren’t very big, so there’s no way this can be considered a NEW snippet/add-on. Should I try to contact Scotty? Please advise, I have no idea how all this works.
              Jul is currently workin on an updated version of TresureChest, maybe you can contact him and merge the updates?
              http://modxcms.com/forums/index.php/topic,44823.msg268737.html#msg268737
                • 36875
                • 5 Posts
                Hi Sharkbait,

                Thank you, I might try that. From what I read, Jul has progressed way further than I have though!
                  • 7690
                  • 166 Posts
                  don’t know if an old version is at the official site, but it’s not safe.
                  I can change the price with FireBug and have it sent to paypal.
                    • 36875
                    • 5 Posts
                    @DNA: Yes you’re right. However, if you’ve configured TreasureChest to use PDT (or IPN, I can never remember which is which but TC supports both), you are able to do a check for this after the payment has been made. Then, when the paid amount (or something else) is wrong, you can make TC act accordingly. This is sort of your poor man’s alternative to encryption, which I found impossible to set up in Paypal, although obviously with a little time and knowledge it can be done.

                    You do need to tweak TC a little though, because even though PDT/IPN is supported, it does NOT check for price changes.