We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Quote from: sottwell at Nov 28, 2005, 01:25 PM

    I’ve got four installations on my localhost, as well as my personal site which I use as a remote testbed so others can play with my toys too. Gets interesting when I forget which installation I’m working on at the moment!

    Indeed Susan; I’m looking at 17 MODx (and 2 Etomite) projects in my Eclipse navigator right now shocked and that’s only the ones I’ve worked on since last week when I got a new computer. Now, what was I working on???!!! tongue
      • 18126
      • 87 Posts
      Sounds really cool! Thanks. grin

      I have to try this some day. For my purposes this could be better than the "complete" e-commerce systems out there. I’d create my own shopping cart, but lately have had no time for such projects...
        • 32241
        • 1,495 Posts
        This is cool... Keep it simple and flexible Susan.

        I’m here supporting you. Hope I can do something later on.

        C ya...
        and Good JOb!!!


        Wendy Novianto
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          The catalog is simple enough, just a creative use of the MODx document tree structure, menu snippets and NewsListing snippet calls.

          The plugin keeps track of the user’s activity by loading the POST returns into the SESSION.

          The mini-cart snippet uses these SESSION values to generate the display of purchases with a running total.

          The checkout cart snippet does the same, with the addition of a bunch of TVs that can be edited from the checkout document.

          The checkout page has two TVs to contain the option blocks, one for shipping options and one for payment options. The payment options block won’t show until a shipping option has been selected.

          Each shipping option requires a TV to provide the radio button option and do any other processing to determine shipping costs, setting the result as a hidden input field, then on postback if its button was set the plugin adds that to the SESSION. The checkout snippet then adds the shipping costs and generates the second part of the order.

          Each payment option requires two TVs, one to provide the option radio button, and the other to handle the payment function if its option button was selected. This will make it easy to add payment options by creating two new TVs, one for the button and one for the actual payment processing. This version does not require registration, nor does it permanently store any user information.

          So while it contains a number of various parts, it’s designed to be modular in the extreme, and to use as many MODx features to advantage as possible. And most of the parts can be omitted if you like; for example if you only have one payment method, just stick it in the Checkout document and skip the payment button and processing TVs; likewise with the shipping options. If you want to skip the mini-cart, you’ll need to add a link somewhere to the Checkout document, and a link or button on the checkout document so the user can clear his cart. Eventually that checkout cart will have form capabilities to change the quantity, or remove individual items.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 6726
            • 7,075 Posts
            What can I say Susan : not only do you created this great thing from scratch, but here you are writing the doc at the same time... do you sleep sometime ??

            ;D
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 25663 MODX Staff
              • 12,272 Posts
              Ninjas do not sleep. wink
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 6726
                • 7,075 Posts
                lol... yeah apparently they don’t !

                I didn’t know this was a no-sleep-bug-squashing-code-writing-team of ninjas grin

                Quote from: rthrash at Nov 29, 2005, 05:11 PM
                Ninjas do not sleep. wink
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l'outil id
                  • 32241
                  • 1,495 Posts
                  Just wanna thanks for all the hard work.

                  Keep it up guys...


                  Sincerely,
                  Wendy Novianto
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Susan... got that PayPal thing much more cleaned up and almost done now, if you want to toss in IPN and webuser account creation into the mix.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Well, I’ve manage to get a rather crude email order form working. Has some rudimentary input validation. Needs a lot of work, but it gives an idea of how a Payment Module TV should work. Just call it at the end of your Checkout document, and put the corresponding PayCODOption TV in the Payment Options TV like this:

                      @EVAL
                      if(isset($_SESSION['order'])) {
                      return '
                      <form action="[~[*id*]~]" method="post">
                      <fieldset id="scPaymethods">
                      [*PayCODOption*][*PayCreditCardOption*]
                      <input type="submit" class="button" name="paymethod" value="Select Payment Method" />
                      </fieldset>
                      </form>
                      ';
                      }
                      


                      (yes, I know the names are a bit different than the package below, I will be updating it shortly)
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org