We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24197
    • 21 Posts
    Hello community;

    Recently I’ve been researching the available options to create a ’grid’ style storefront integrated with a shopping cart in a CMS.

    Is there a solution for creating easily edited grid style pages in MODx at this time?

    I have created one site with a basic DIV/CSS grid in which content was edited from the front page simply by switching pictures/text like a normal document. However, I was hoping for more of a ’catalog’ style administration, where a person could insert a product and MODx sorts them into the ’grid’ catalog.

    Basically, eliminating the need for the website user to add more ’grid sections’ to their storefront via editing the HTML.

    If you have any suggestions for this, I’d sure appreciate it!
      • 7231
      • 4,205 Posts
      Check this out for an example with Ditto: http://ditto.modxcms.com/examples/columns.html

      Then yu could use TreasureChest or FoxyCart to handle the commerce part.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 24197
        • 21 Posts
        Thank you for the reply.

        Is the function of Ditto in this instance then to repeat the ’box’ code 12 times, and order them according to a specific layout designated in &tpl=`ditto_columns`?

        At this point, I’m simply using a table as I’m having a little trouble..
          • 7231
          • 4,205 Posts
          Yes, you use ditto to output a loop of ’boxes’, you control the number of results with &display=`12`. In this case the output is a list <li> and you control the way they look with the css styles. Each one of the items represents a MODx document. In the case of a store you would make a document for each item and add template variables for each of the product options (color, price, size...) and prepare the ditto tpl accordingly.

          This is the style information that controls the way the columns look:
          #columns li { 
          float: left; 
          height: auto; 
          width: 21% !important; 
          margin-bottom: 10px; 
          border: 1px solid black; 
          padding: 5px; }


          You can alter this code to change the look of the boxes.

          Using a table with Ditto is also an option. Instead of making each box a list item <li> you can make it be a table cell <td>. You can also add the native pagination that Ditto provides.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don&#39;t know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 24197
            • 21 Posts
            Ok..

            So then, one could substitute the template variables for output variables from treasurechest? And just have a single TV for the Treasurechest item number?

            Thank you
              • 7231
              • 4,205 Posts
              Quote from: quantikev at Mar 25, 2008, 06:34 PM

              Ok..

              So then, one could substitute the template variables for output variables from treasurechest? And just have a single TV for the Treasurechest item number?

              Thank you
              Yes, that sounds right, but I have not had the opportunity to work with TreasureChest yet. In reading the docs it seems that this is the principal.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don&#39;t know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 27330
                • 884 Posts
                I have a store setup just like that with Ditto.
                check http://demo.treasurechestcart.com/demo-store.html look for the small link "View the code for this page" to learn how to do it.

                  • 19980 ☆ A M B ☆
                  • 275 Posts
                  Hi the demo.treasurechestcart.com/demo-store.html is no longer responded, I wonder why?

                  I found the reply http://codingpad.maryspad.com/2010/06/16/ecommerce-with-modx-and-paypal/#comment-12735 where it says that http://www.altipoint.ch/index.php?id=237 are reselling the GPL code, how can it be?
                    modx and ecommerce pro