Skip to content

Commit

Permalink
Update docs, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
meeech committed Sep 16, 2010
1 parent ade6f62 commit a1cba6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions docs/add-to-cart-mods.mdown
@@ -1,4 +1,3 @@
<markdown>
Everything Add To Cart
======================

Expand All @@ -20,7 +19,7 @@ Begin
* Get a copy of my modified [jQuery Shopify API](http://github.com/meeech/klocko/blob/master/assets/api.jquery.js). Upload to your **assets** folder.
* Get a copy of my [ajaxify-shop.js](http://github.com/meeech/klocko/blob/master/assets/ajaxify-shop.js). Upload to your **assets** folder.

<aside>The contents of those files will be the subject of a later post, but you can read the source, it's commented.</aside>
(The contents of those files will be the subject of a later post, but you can read the source, it's commented.)

Edit **layout/theme.liquid**
----------------------------
Expand Down Expand Up @@ -83,7 +82,8 @@ Only one add to cart form to use everywhere. So a simple form is created as a sn
It uses the first variant of an item if there are more than one.
You can style the form however you like. The submit button can be type=image if desired, and everything should keep working fine.

* edit **templates/collection.liquid**. At Right before the closing `<li>` on [line 19](http://github.com/meeech/klocko/blob/master/templates/collection.liquid#L19) add `{% include "add-to-cart" %}`
* edit **templates/collection.liquid**. At Right before the closing `<li>` on [line 19](http://github.com/meeech/klocko/blob/master/templates/collection.liquid#L19) add
`{% include "add-to-cart" %}`

And you're done.

Expand All @@ -94,8 +94,6 @@ feedback always welcome,
m

Known Limitations
-----------
-----------------

* The add to cart form doesn't account for variants. It will just use the first variant on a product. While it's possible to make it variant aware, I haven't had the need yet, it clutters the ui a bit. Let me know if you need that functionality, maybe something can be arranged.

</markdown>
2 changes: 1 addition & 1 deletion readme.mdown
Expand Up @@ -8,5 +8,5 @@ This is where I'll experiment, share changes and whatnot. It's the theme I use f
Included
--------

* Make Buy This ajax enabled & Add an Add to Cart for every product on a page, easily.
* Make Buy This ajax enabled & Add an Add to Cart for every product on a page, easily. [post](http://www.plankdesign.com/blog/2010/09/everything-add-to-cart/)
* Modifications for a product image rollover. See this [post](http://post-to-come) for more info.

0 comments on commit a1cba6d

Please sign in to comment.