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.
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.
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
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
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
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.
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!
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.
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.