We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Quote from: rthrash at Nov 30, 2005, 12:15 AM

    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.

    User registration and validation will be included in the next major package release, as well as a user editable cart display (remove items, edit quantity). Probably not for a couple of weeks though, I’ll be housepainting. Maybe.

    Um...IPN?
      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
      • 25663 MODX Staff
      • 12,272 Posts
      IPN = paypal posting back to your site with a success code and amount.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 14267
        • 113 Posts
        Forgive me for not sharing sooner, but I’ve been frantically working on getting a Modx-based storefront of my own released. Just turned it loose on Monday, with probably a bug or two, but we were already late on the Christmas season. Take a look at http://girl33.com/shop. Pleare help me and report any bugs and ideas, ok? If people are interested, I could now possibly set up a demo site and provide manager login info to some folks. I am not the most thorough or knowledgeable out there esp. when it comes to security and error checking, not good for e-commerce, so would be most happy to share with the brilliant Mod-xers around here.

        Features:

        All TV-based (10 TV’s so far I think).
        Expanded registration table and signup form, with user account editing. User id is email address.
        Categories based on page tree, with no theoretical limit to subcategories
        Discount by product or category, based on quantity or total value ordered
        Product options (uses a child page, with a simple boulean checkbox TV to mark it as an option)
        Maintains stock levels
        Most content, including product listing pages, is template-based using chunks.
        Real-time U.S. Postal Service rate lookup
        Paypal IPN based on class found on phpclasses.net. Not working perfectly, but getting the job done for now.

        Limitations: English, U.S. currency, Paypal and U.S. Postal only at this time. Of course no reason more options can’t be added--something I see Susan is already on top of.

        Misc. notes:
        Adds new tables for orders, ordered products and paypal ipn (at this time they’re in a separate database, but will probably just integrate them.

        One minor core hack, a simple function to set a TV. Otherwise all snippets and modules (for backend reports). Still creating some of the backend tools.

        Product pages are currently added via manager, not a frontend tool like News Publisher--counting on the upcoming manager rewrite. wink

        I like Susan’s ideas and will be taking a look at incorporating at least some of them.

        Because of the combination of snippets, TV’s, chunks and modules, if this were to be publically released it would need an installer, something I would probably never get around to, if for no other reason than I’d never think it was good enough with my sloppy coding.

        Modx is fun.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          One minor core hack, a simple function to set a TV

          Maybe you could use a plugin? I’ve gone the route of core hacks, and it’s a real pain when upgrade time comes. Unless, of course, it’s a really useful feature and gets put into the core distribution!
            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
            • 14267
            • 113 Posts
            Quote from: sottwell at Nov 30, 2005, 02:08 PM

            Maybe you could use a plugin?
            Because I’ve never really understood plugins very well. smiley Actually I first set it up as a snippet that got I called via runSnippet, but it seemed to really slow things down when I first used it to decrement the stock level. I assumed the speed hit came from multiple calls when iterating through a list of products ordered. But to be honest it’s such a small function it’s probably easiest just to repeat it in snippets whenever needed.

            Parenthetically, I’ve been wondering why the Modx core couldn’t include a class extender called user or something, for cases where for efficiency you want to avoid the overhead of a snippet, but I guess that’s another post.
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: jlarson at Nov 30, 2005, 05:38 PM

              Parenthetically, I’ve been wondering why the Modx core couldn’t include a class extender called user or something, for cases where for efficiency you want to avoid the overhead of a snippet, but I guess that’s another post.

              That’s exactly where we are headed in the not so distant future. Probably even allowing user-defined extension objects to be loaded as well, on demand.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                OK, the shopX pages work in IE now. What a pain. undecided
                  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
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Fixes to ShopCart.snippet and StartCartSession.plugin.

                  Fixed URL issue in creating the ’clear cart’ link (thanks, Mark!)

                  Changed SESSION storage of the items in cart from serialized to array to facilitate...

                  Simply increase the quanitity of a line item added to the cart more than once, rather than show the item multiple times.

                  Will still need to serialize or implode the array for cookie or database storage.

                    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
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    shopX version 2 firmed up to the point of the payment module selection. Whole enchilada (hm...sounds good, too bad I can’t get good Mexican ingredients here!) attached to the first post. Read the accompanying text file.

                    Payment option selection still a bit fuzzy, but I’m sick as a dog with my winter bronchitis and this is the best I can do right now. Maybe somebody else can see where I’m going with this; if not I’ll get to it eventually. For now, it’s a hot shower, hot tea with brandy, and some sleep.
                      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
                      • 14267
                      • 113 Posts
                      My Modx-based shopping cart is working fine at http://girl33.com/shop. This is a completely separate project from what Susan is working on, but hopefully there will be some synthesis as her project develops. Since I don’t have time to develop this project into a distributable package nor support it as such, I’ve set up a demo site at http://storie.com/shop. I still need to add some technical info, mostly about dbase additions, changes, but will send a manager login/password to anyone who would like to take a look. Send request via PM.