We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    This is an auto-generated support/comment thread for gCart.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    This full integration of the GoogleCheckout API. The 0.2 release adds PayPal and UPS.

    Wiki Entry:
    http://wiki.modxcms.com/index.php/GCart

    Please post all feature requests/bug reports in this thread. I still have to post the documentation on doing the shipping methods, discounts, and fees to the Wiki.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 26775
      • 2 Posts
      Hi Jesse

      Great work, I am pleased to report a successful outcome of my initial trial with your contribution.

      I know you have a to do list, but if there’s room for more, I’d love to see a method for bundling products. I imagine his could also be a useful addition for your wine site?

      Many thanks for all your hard work.
        • 14050
        • 788 Posts
        I have found some bugs and have constantly been refining the code. I will be making a .2 release soon and describing how to do all the ajax stuff that I am doing on the wine store. I use the jQuery library which comes in at 14k minified and gzipped and my additional script which is 2.1k packed and gzipped. At 16k, the benefits easily outweigh the cost, especially if the script is cached for subsequent visits.

        Regarding the bundling of products, how would you like to achieve that? What ways do you think it could be done so that it remains easy for the end user to configure and install gCart? I am willing to try and incorporate all suggestions, as long as I am able to figure it out smiley
          Jesse R.
          Consider trying something new and extraordinary.
          Illinois Wine

          Have you considered donating to MODx lately?
          Donate now. Every contribution helps.
          • 26775
          • 2 Posts
          I’m looking forward to trying out the Ajax functions smiley

          For defining product bundles, I’ve been trying to figure out a way to do it by imitating the discount functionality, but think I’m lacking the knowledge/experience to define a method that won’t over-complicate matters. I’ll give it more thought.
            • 34017
            • 898 Posts
            Jesse,

            one thing you might want to add is the ability to run functions at different times in the script (similar to eForm onMailSent, onFormSent variables). This way we can create a list of shipping/discount/coupon code snippets and let users run them to massage the data when it’s added to the cart or sent to google.

            chuck
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
              • 14050
              • 788 Posts
              Great idea Prowebscape. I should have thought of that before. I think I will work on that for the next release.
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 8960
                • 150 Posts
                I’m stuck. I’ve walked through the wiki, but I can’t get the cart to register that I click the ’Add Item’ button (it just always says my cart is empty). I’ve installed everything as stated directly in the wiki, but I can’t help but feel there’s something missing.

                Any idea where to start. I rechecked the gSession, and I pasted the code as it was in the .php file you included, but I removed the <? that was at the beginning of the file. Now, in Firefox, the page just hangs when I click the Add Item button.

                Also, in the wiki, you mad mention to {{gItem}}, but this was not one of your included chunk files as the wiki states.

                Thanks!
                  • 16085
                  • 203 Posts
                  Has anyone got a working backend example of this script as I’m reading through the wiki and apart form installing the script I’m just not getting how you build your store/products to use it..

                  Following the wiki install guide and so far all I end up with is this
                  <div id="minicart"><h1>Your Cart</h1><p>Your cart is empty.</p></div>
                  and this
                  Your Cart

                  Your cart is empty.
                  I must be missing something if not everything... brain dead day huh

                  also I’m sure there was a more Ajax’ed example of this script in action, but I can’t find the link!!
                    • 14050
                    • 788 Posts
                    Here is the link to a site using this script:

                    http://www.blueskyvineyard.com/store/

                    The wiki entry could use an overhall and I was hoping that someone would be willing to document their implementation.  I am willing to help walk you through the installation, but it does require some familiarity with Ditto.

                    So to create items that you can add to the cart you need to do the following, assuming you have completed most of the steps in the Wiki.

                    Create a document.  Set the documents template to a template that you assigned the template variables too.  Fill in all the template variables.  Then add the following code or a chunk containing the following code into your content:

                    <div class="gOptionItem">
                    	<form method="post" action="[~[*id*]~]">
                    	  <fieldset>
                              <input type="hidden" name="token" id="token" value="[!gToken!]" />
                    	  <input type="hidden" name="gName" id="gName" value="[*pagetitle*]" />
                    	  <input type="hidden" name="gSKU" id="gSKU" value="[~[*id*]~]" />
                              <input type="hidden" name="gDocID" id="gDocID" value="[*id*]" />
                    	  <input type="hidden" name="gDescription" id="gDescription" value="[*description*]" />
                    	  <input type="hidden" name="gPrice" id="gPrice" value="[*gPrice*]" />
                    	  <input type="hidden" name="gWeight" id="gWeight" value="[*gWeight*]" />
                    	  <input type="hidden" name="gDiscount" id="gDiscount" value="[*gDiscount*]" />
                    		<p><label for="gQuantity" class="left"><strong>Quantity:</strong></label>
                    		   <input maxlength="3" type="text" name="gQuantity" id="gQuantity" class="qty" value="1" />
                    		 <label> </label><input type="submit" name="add" id="add" class="button" value="Add to Cart" /></p>
                    	  </fieldset>
                    	</form>
                    </div>


                      Jesse R.
                      Consider trying something new and extraordinary.
                      Illinois Wine

                      Have you considered donating to MODx lately?
                      Donate now. Every contribution helps.
                      • 14050
                      • 788 Posts
                      Quote from: ER at Mar 16, 2008, 11:08 PM

                      I’m stuck. I’ve walked through the wiki, but I can’t get the cart to register that I click the ’Add Item’ button (it just always says my cart is empty). I’ve installed everything as stated directly in the wiki, but I can’t help but feel there’s something missing.

                      Any idea where to start. I rechecked the gSession, and I pasted the code as it was in the .php file you included, but I removed the <? that was at the beginning of the file. Now, in Firefox, the page just hangs when I click the Add Item button.

                      Also, in the wiki, you mad mention to {{gItem}}, but this was not one of your included chunk files as the wiki states.

                      Thanks!

                      Sorry that I missed your post. If you are still trying or want to implement this, leave me a note here.
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.