carolineschnapp / limiter Goto Github PK
View Code? Open in Web Editor NEWTo use in Shopify to limit quantities of products ordered. Requires jQuery.
Home Page: http://wiki.shopify.com/Limiting_Purchased_Quantities
To use in Shopify to limit quantities of products ordered. Requires jQuery.
Home Page: http://wiki.shopify.com/Limiting_Purchased_Quantities
Can you update it for work in Dawn theme?
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.
this works great for one of my stores, but I need to keep the AJAX cart functionality for another one of my stores. Are there any workarounds for using this with a theme that has AJAX? All I need is to implement a quantity limit of 5 per product.
This has been super helpful thank you! I was wondering if there was a way to limit for only 1 color variant per order. Right now it is letting me add 1 of each size for each color and I have been trying to figure out how to limit only 1 per color ?
I am using with Limit products using Handles but it is not working.
Shopify.Cart.limit({ limitQuantity: 1, limitPer: 'product', limitProductHandles: ['monthly-subs'] });
Hi, I've implemented this on my shop and added the theme settings to configure this from the Customize theme page. The problem is that it doesn't seem to work. I'm using the Minimal theme and I haven't found a way to disable the ajax in the cart as you described it. The code below shows the form and the purchase button. What am I missing here?
...Hi Caroline, not sure if this is the right venue for questions.
Wondering if there's a way to display a custom message for items that have been limited to a specific quantity. Ideally this would show up in the (ajax) cart.
i.e. "This product is limited to 1 per customer, please email us for a custom order..."
Thanks!
Joseph
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.