Permalink
Browse files

Add basic documentation

  • Loading branch information...
1 parent b1f34ec commit c799410ef98e0b98f497270b711a772b6c2632a6 @elivz committed Apr 13, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.markdown
View
@@ -1,4 +1,16 @@
CartThrob Percentage Option
===========================
-*Note that this was created for a specific situation, and may not be generally applicable.*
+*Note that this was created for a very specific situation, and may not be generally applicable.*
+
+If you still want to try: You need to create an item option with a name that ends in "pct". Then make sure each of the possible option names has a number in it, which will be used as the percentage to increase the base price by.
+
+Sample Code
+-----------
+
+ <select name="item_options[gratuity_pct]">
+ <option value="">Pay gratuity at event</option>
+ <option value="grat_15">Add 15% gratuity</option>
+ <option value="grat_18">Add 18% gratuity</option>
+ <option value="grat_20">Add 20% gratuity</option>
+ </select>

0 comments on commit c799410

Please sign in to comment.