We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13323
    • 4 Posts
    Quote from: Dr. at Jun 17, 2008, 09:49 PM

    I have restarted work on TC2. I ran into some pretty significant roadblocks that I was able to overcome. There are a lot of good suggestions in this forum, and I am open to every suggestion.

    Some key features of what I am working on right now:
    There will be no separate module for product administration.
    each item is a MODx document. Product attributes (price, quantity, shipping options, etc...) are set in TVs.
    "ViewCart" contents will be customizable via chunk. Default functionality will be to open a new page to view the cart with an easy option to use an included javascript modal window or to roll your own javascript view.

    Focus for TC2 will be on the API.
    Payment options (PayPal, Google Checkout, Authorize.net, 2Checkout, etc...) will be a modular extension. Any developer can add a new payment method by extending the TreasureChestPayment framework class:

    ...stripped...

    I am (as usual) working on this in my spare time. As soon as I get a workable public alpha, I will subversion it to encourage collaboration from the community.

    -sD-
    Dr. Scotty Delicious, DFPA

    Hi there Scotty.

    These are some really welcome additions, and I say this just because I needed to r*pe your TC totally to get a client happy - and by saying totally, I mean totally grin
    There are but a few methods left in the TC class I didn’t meddle thru to customise the cart for my clients needs, eventhough the chunks remained the same.

    My goal was originally just to implement a simple mailer instead of having direct paypal money transfers, but wanted to leave the option there, so it could just be "toggled" on and off at will, from the module
    - well to achieve this, I had to simulate the paypal payment procedure, alter the paypal-gw to point to my own servers if sandbox on (used this for the mailing-toggle) and with no prior paypal api knowledge, it was a heavy trial and error case what the script wanted as response for the requests, like fake transaction id’s, creating the order detail forms etc etc.

    Now if that wasn’t enough, I learned that my client used Mootools as their clientside JS Framework, and of course you had packed&obfuscated the JS, so I needed to rewrite the whole js-part of TC into using mootools laugh
    Well after 2 weeks of guessing what your functions were, I finally got the sh*t together, without a single error and everything working, even as a butt-ugly-hack-TC. laugh

    So to the point of my rant, if you got this far grin ;
    I’m volunteering to write you an alternative JS solution for clientside - the Mootools version - going alongside the jQuery (which would’ve worked perfectly if MT wouldn’t’ve clashed - yes even with the noConflict namespacing) if you like smiley
    So If you’re interested, just drop me a pm or email me: jabis @ pumppumedia.com

    Yours truly,
    Jabis Sevón

    ps. the site I re-coded this chenanebang-ding-dong-TC isn’t online yet, for other productional hassles, but I’ll bump here when it is launched.

    pps. thanks for the great (piece of) work grin
      • 23050
      • 1,842 Posts
      Hello ! smiley

      I might miss something but where are the snippet and module files ? In the archive, I only get install folder.

      After install, I get those messages :

      Warning: unlink(index.php) [function.unlink]: Permission denied in /home/xxx/install/index.php on line 291
      
      Warning: rename(dummy.html,index.html) [function.rename]: Permission denied in /home/xxx/install/index.php on line 292
      
      Warning: rename(/home/xxx/install/,/home/xxx/assets/snippets/treasure_chest/) [function.rename]: Permission denied in /home/xxx/install/index.php on line 293


      I’m sure I miss something, I’m sure I miss something very easy.. but I don’t know what laugh

      Thanks wink
        • 27330
        • 884 Posts
        they inside the install folder, treasurechest.module.php and treasurechest.snippet.php
          • 23050
          • 1,842 Posts
          Hi Sinbad,

          Ok I found theses files. Module and snippet are created in MODx manager.

          But where are the files to put in assets/modules/treasure_chest and assets/snippets/treasure_chest ?

          Thanks for your help wink
            • 27330
            • 884 Posts
            I guess the installer didn’t copy the files for you.
            you can copy all the files from the install folder into assets/snippets/treasure_chest/
            on my install I don’t see any TC files or directory under assets/modules/ so I guess you only need to create the module in the manager.
              • 23050
              • 1,842 Posts
              Ok I’ll try that, thanks ! smiley
                • 33195
                • 25 Posts
                Hi smiley

                Can TreasureChest handle downloadable products like audio files or pdfs,... ? Would it be hard to make TC work with something like FileDowloadPE to build a simple shop for digital products ?

                I’m going to launch one of my musical project soon, and I’m looking for an inside Modx solution grin

                  • 14617
                  • 47 Posts
                  Hi Scotty

                  Thanks for a great module. I’m using TreasureChest for a webshop on a new site. The site uses Thickbox and Jquery to display it’s image galleries. The cart is outputtet on all pages, so your javascripts is included on all pages. That gives me problems because your javascripts also include jquery and thickbox. I have tried to remove the jquery and thickbox part of your script, but it keeps giving me errors. Is it possible to get an "unencoded" version of your javascript? Then I could just use your javascripts to make the neccesary changes and then have no need to include my own (i need to make a few changes to thickbox and run a newer version of jquery).

                  Thanks a bunch

                  Jonas
                    • 22563
                    • 63 Posts
                    Can TreasureChest handle downloadable products like audio files or pdfs,... ? Would it be hard to make TC work with something like FileDowloadPE to build a simple shop for digital products ?
                    I am interested in this, too.
                      • 23050
                      • 1,842 Posts
                      Ok, finally, I could install TC copying fils in assets/snippets/treasure_chest, thanks Sindab ! smiley

                      But now, I can’t get the cart work. I have one product ( -http://www.hamadryades-evenementiel.com/tc/pack-deco-rouge.html) and I guess there’s a problem with javascript : every time I click on the page, the body opacity changes huh

                      Adding to the cart doesn’t add.

                      I’ve set a div with #treasure_chest (as configured in module) but it’s empty. It doesn’t show up.

                      The view code here doesn’t work : http://www.treasurechestcart.com/demo-product1.html
                      Would be nice to see the code wink

                      Do I have to add [!TreasureChest? &service=`cart`!] in other place than in the cart doc ?

                      Thanks smiley