carolineschnapp / limiter

To use in Shopify to limit quantities of products ordered. Requires jQuery.
http://wiki.shopify.com/Limiting_Purchased_Quantities
54 stars 31 forks source link

Missing non-minified source #1

Closed ets closed 11 years ago

ets commented 11 years ago

This is nice work. Great writeup. Just wish you'd posted the non-minified source because limitSkipCartPage is not working for me and I assume others as well. Would love to be able to patch your script and offer a pull request for a fix.

ets commented 11 years ago

Actually just found my issue in the javscript copied and pasted from your shopify post There's an if statement looking for a limit_per value of 'cart' which does not exist in the corresponding settings.html addition. Changed that to look for 'order' instead and I'm off to the races.

Thanks for sharing this work!

rosam03 commented 5 years ago

The line he's referring to above is :

l.limitPer="product"

changing it to the following worked for my use case:

l.limitPer="order"