Hi! Thank you so much. I did it. But then I realize that customer can't decrease quantity in product page, but can decrease quantity in cart page. Do you know how to fix that? Thank you! You are the best.
Hi Ed, another terrific video! Just wondering if you have a video on setting Minimum Order Value? I would like to set minimum values using specific parameters such as a customer tag or by collection. Thanks!
Thank you soooo much! This is so helpful!! I have a question: If I want to sell some items as minimum product and some I want to sell as minimum box, can I create both metafields and insert both options in the code and put a value for just one of them? will it not cotradict the command we gave for quantity = 1 when the field is blank?
You are BRILLIANT. Thank you so so sooo much - I've been searching/trying out sooo many product min apps on the Shopify store and could never find a great solution... until NOW! Seriously thank you thank youuu for this tutorial!!!
Thanks so much for the video. Everything works perfectly except the code keeping the cusyomers from manually changing quantity. Is this something you can help with, I'm using simple theme.
This is great. Really enjoying all of your videos. The Shopify community definitely needed a channel like this focused on theme and liquid coding customizations as opposed to always relying on apps. I was able to use this on another theme and I'm currently working on applying both min/max using variant metafields as well.
Hey Jeff, thank you for saying that. I was thinking the same when I started this channel - there are so many easy ways to enhance a Shopify store (and redundant apps). So it's great to hear you validate this idea. Let me know if there are any topics you want me to cover!
Hi Ed, as per normal very helpful and easy to follow. I'm running an older shopify theme on a wholesale only business so it was heavily modified to make it work, and therefore a major to move to 2.0. I was looking for a pointer to update the mini cart that drops down in the theme (when you hover or click on cart icon), as customers can still edit the quantity there and the coding supplied does not seem to impact the order quantities there. I just cannot workout what template file needs to be edited to make the changes. Thanks, Tim
For everone having problems with the "step' value not changing. You have to adjust the file 'theme.js' and how the +/- buttons are working. by default they just add/reduce by 1. you have to change the code so it's considering the step value as well. I am using the Impulse theme, but it should be very similar in others.
Thanks for this video. Is there a way to use this methodology to create a MOQ for the overall $ value or quantity of products that someone must purchase?
Hi Ed, what a great tutorial! Worked like a charm, thank you very much!! Is there a simple way to edit the code to make it work on certain product variants? Let's say variant A and B do not have an MOQ, but variant C and D do. Do you think this is possible or would this be considered advanced coding as javascript is needed? Thank you in advance and keep up the good work!!!
@@goretejalecos hi, I did not find a solution to this problem yet. Right now I have splitted the products with variants that need a moq. Sad cause now there are two of the same products, just with different diameters, one with moq and one without.
Wondering if there is a way to do coding for bulk pricing? 1 to 25 for x amount of $. Up to 50 for x amount and so on. I looked through videos and cant seem to find anything. You do fantastic work of explaining. So easy to learn from you
hello ed! thank you for this tutorial. How can i do this in different products with different min/max quantity rules? Should i just do the same coding 3 times (i only have 3 product bundles) or is there something specific i should do
Great video! My only critique is to enlarge the text for when you are highlighting the code portion because it is hard to read and follow along for a beginner like me. I was not sure whether you included parentheses or brackets.
Thank you! great video as always your channel has become my bible for all things Shopify :) I have set both min & box quantities as needed perfectly but is there a way to change the unit price displayed on the product page to reflect the min/box qty price instead? if I add the box qty price in the inventory it multiples it by the qty amount in the cart, any guidance would be amazing!
Great Video! Any change to use the metafields to change my quantity picker to decimals? I am selling fabrics starting from 0.5M(starting point) and I want my customers to ad by clicking + always another 0.1M - up to 20.0M not more. Well the team from Carson created such a price measurement calculator for me but since 2.0 came out it does not work the same way. Which means I have to pay them again to do it on 2.0. The question is simply... can those metafields somehow do that for me or do I need coding again?
Hi Ed, I appreciate your videos. But now I really need your help. How do I get the quantity to start at 0 and not 1. I sell by the dozen, and since it starts at 1, the quantity ends up at 13 and not 12 when you do the first jump. Please show me how to correct this somehow
I’m a beginner and it was a bit hard to follow the jumping from one screen to another. I got to the part where I’ve set my box quantity, but after that, I couldn’t find the screens you were on even though my theme is Dawn. The coding part is hard and I have no idea what I’m doing
I am not using Dawn theme but I followed your instructions and it worked until I put the steps code in and the minimum stoped working and I went and watched your bulk editing video and it still won't allow me to put a minimum quantity in. I don't know what I'm doing wrong. If you got any ideas it would be much appreciated. I know with you not seeing my theme back office it will be challenging. Thanks in Advance.
Thank you so much for your videos and very good explanations. I was trying to follow the video with no success. I presume it's not compatible with Dawn 8.0. I could define and set the metafields correctly as you explained so well. But the values are being reset back to 1 all the time. Probably because of some js interfering.
hello, i managed to get this working on the updated Dawn 8.0 - it was initially resetting back to 1 when I copied my theme code over but after the 3rd attempt at re-doing it's working as it should so it is compatible :)
@@MP-nx9bo Hi, Thank you for taking the time to respond. The changes suggested here are not working on variations which is the case with my product and would require changing some js code, but I haven't found a solution for this yet.
Hello! I followed the video and instructions but when I completed it my quantity box now turned white and the them in my site the background is black. Do you know how to fix that?
I tried doing everything you said and to a certain point I got it working. I could get the part working where the products with the minimum quantity worked, but the rest of the products where the piece of code should say that they are 1, they are still blank. And the line of code that was supposed to fix that, the ==blank part, is not working for some reason even tho the rest of it does work. Could you pleeease help me fix this? I think it shouldn't be too much trouble for you. Thanks!
This is a great video indeed. The only trouble I'm having is for the quantity field to reset when you click on another variant of the same product (e.g., clicking on size S, then size M, etc.). Is there any way to do this? I am using the free Taste theme. Thank you in advance.
Can you please do an update on this video? Many things have changed, and for some reason the quantity only shows up for a split second, then resets back to 1 MOQ. Thank you!
@@akshi3139 Unfortunately no. I just gave up on the MOQ thing and looked for an app (all of which sucked or were expensive). Ended up not bothering with it, but I encourage you to check the apps or if there are any other solutions. Don't take my word for it.
Hi Ed! Thank you so much, managed to change it on the product page but the cart quantity keeps resetting to one even when the quantity added to cart from the product page with min quantity is 10. I'm using dawn theme and followed step by step but the if doesn't seem to be working. Could it be a Dawn 10.0.0 thing as I see that there is now a data-cart-quantity line below the value line which your code doesn't have. Help!
Hey Ed, thanks for your super helpful videos! The content is great, and your calm delivery makes it all easy to take in. The "step" aspect of your tutorial doesn't seem to work with my theme--I use pipeline by groupthought. How might I adjust? The onkeydown="return false" code is super helpful. How might one incorporate code that would make onkeydown="return false" conditional on the existence of a minimum_qty value, so non-box items can be manually typed? Thanks in advance!
Hey, thanks for the support! Regarding step I'm afraid I can't really tell you without getting my hands on it and experimenting with the code. Maybe just check one thing - the input type is number and not text, right? As for onkeydown="false" - you could just wrap that line in an if statement, like I show around 10:30, but use != blank (does not equal blank) to check that min quantity exists. Alternatively wrap the whole input in an if statement with an else containing the unmodified code, so that products without the metafield get the regular unmodified input.
@@EdCodes Thanks for getting back to me so fast! I suppose every theme has their own syntax for "step"--I'll ask the developer. While it works onn its own, when I wrap onkeydown in an if statement, I get: "Liquid syntax error: Unknown tag 'onkeydown'". Does this happen for you or is there a workaround? Using the else method, is there a way I could wrap the whole input in a single else statement using both min_quantity and box_quantity metafields simultaneously?
Hello Ed, The codes works for product quantity + cart check quantity, however I have a min-cart which when I applied the code it doesn't work. Is there perhaps anything that needs to be add to the code?
This is great! It was exactly what I was looking for. Is there a way to enable and disable these quantity rules based on customer tags? So if I'm running retail and wholesale on the same site, can I set this minimum quantity so it only operates for tagged wholesale customers but not the retail customers?
Hi Ed, I just bought the Empire template and I just edited the code for the product template but when I tried to edit the cart template I couldn't find the part of the code. Do you know where I can edit it?
Hello, I want to offer a free product but maximum 1 quantity or maybe 2, and shipping $6. I did the shipping cost but I do not know how to set up the Offer to get a maximum 1 product, no more. Can you do a video? Tahnsk
exactly what I needed, but there seems to be some compatibility issues with the latest Dawn Theme. It will add +1 item. Lets say there is a box quantity set for 100 - it keeps adding steps 101, 201, 301.... any idea how to solve this?
i used this method to increment the quantity selector as 0.5,1,1.5 but the price in the cart page shows the same for 0.5 and 1 and then 1.5 and 2, how can i solve this problem, can you please guide me.
Using the trade theme. On the product page, everything works. On the cart page, everything works. But from the catalog page, all values begin at 0 (naturally because there is no "add to cart" button) but cant increase or decrease them. GIves me an error "Values can only be incremented by...." Tried everything. Looked through all the files. It has to be somewhere in card-product.liquid in the quick-add class. Trying to alter the +/- buttons to increase by min_quanitity (metafield) but no luck. Anybody out there that can help?
Such a good Video Thank you very much!🔥
Thank you so much its worked for me in main cart and products .but its now changing in cart drawer ? how can i edit it? please need a help
Thank you very much for this!!!
Thanks for the video, I had coded the same think but i'm new to Shopify and couldn't figure out how to do it in the Cart, you made it easy
Hi! Thank you so much. I did it. But then I realize that customer can't decrease quantity in product page, but can decrease quantity in cart page. Do you know how to fix that? Thank you! You are the best.
Hi Ed, thank you for your help !!! Your video is very great and easy to understand ! It was exactly what i was looking for.
Hi Ed, another terrific video! Just wondering if you have a video on setting Minimum Order Value? I would like to set minimum values using specific parameters such as a customer tag or by collection. Thanks!
Thank you soooo much! This is so helpful!!
I have a question: If I want to sell some items as minimum product and some I want to sell as minimum box, can I create both metafields and insert both options in the code and put a value for just one of them? will it not cotradict the command we gave for quantity = 1 when the field is blank?
You are BRILLIANT. Thank you so so sooo much - I've been searching/trying out sooo many product min apps on the Shopify store and could never find a great solution... until NOW! Seriously thank you thank youuu for this tutorial!!!
Thank you so much! This was SO helpful! SERIOUSLY! Keep going and keep growing! 😃😃😃😃
THANK YOU SOOOOO MUCH! Awesome video. Step by step perfectly and clearly explained.
Thanks so much for the video. Everything works perfectly except the code keeping the cusyomers from manually changing quantity. Is this something you can help with, I'm using simple theme.
This is great. Really enjoying all of your videos. The Shopify community definitely needed a channel like this focused on theme and liquid coding customizations as opposed to always relying on apps. I was able to use this on another theme and I'm currently working on applying both min/max using variant metafields as well.
Hey Jeff, thank you for saying that. I was thinking the same when I started this channel - there are so many easy ways to enhance a Shopify store (and redundant apps). So it's great to hear you validate this idea.
Let me know if there are any topics you want me to cover!
Have you figured out how to apply the min/max using variant metafields? I'm trying to apply the box quantity using variants but can't figure it out.
@@metropfertilizers8921 @Ed Codes joining the question
@@metropfertilizers8921 any updates on how to set min quantity on variants?
@@UEBV hello bro any updates on how to set min quantity on variants?
thanks this worked just fine and I was using the studio theme this saved me an extra $19.99 a. month for the multivariable app, blessings
This is exactly what I have been looking for.. Thank you!
Hi Ed, as per normal very helpful and easy to follow. I'm running an older shopify theme on a wholesale only business so it was heavily modified to make it work, and therefore a major to move to 2.0. I was looking for a pointer to update the mini cart that drops down in the theme (when you hover or click on cart icon), as customers can still edit the quantity there and the coding supplied does not seem to impact the order quantities there. I just cannot workout what template file needs to be edited to make the changes. Thanks, Tim
Thank you! This video saved my life!
For everone having problems with the "step' value not changing. You have to adjust the file 'theme.js' and how the +/- buttons are working. by default they just add/reduce by 1. you have to change the code so it's considering the step value as well. I am using the Impulse theme, but it should be very similar in others.
could you paste here the code that you changed it to? Im not super handy when it comes to coding so it would have been very helpful.
Thanks for this video. Is there a way to use this methodology to create a MOQ for the overall $ value or quantity of products that someone must purchase?
Great video!!! it really helped me a lot!!! Thank you again!
Can you help me
I change the minimum quantity but it’s not change
I think the code has changed...can't change the values now?
Thanks alot for your help! Rlly clean.
Broo! Thank you very much for this info!
Hi Ed, what a great tutorial! Worked like a charm, thank you very much!! Is there a simple way to edit the code to make it work on certain product variants?
Let's say variant A and B do not have an MOQ, but variant C and D do. Do you think this is possible or would this be considered advanced coding as javascript is needed?
Thank you in advance and keep up the good work!!!
Hello, did you find a solution to this problem? If yes, can you share it with me?
@@goretejalecos hi, I did not find a solution to this problem yet. Right now I have splitted the products with variants that need a moq. Sad cause now there are two of the same products, just with different diameters, one with moq and one without.
thank you very much for this great video and clear explanation, even I am using different theme (debut) very smootly made it..
Much Needed Vid.
Wondering if there is a way to do coding for bulk pricing? 1 to 25 for x amount of $. Up to 50 for x amount and so on. I looked through videos and cant seem to find anything.
You do fantastic work of explaining. So easy to learn from you
hello ed! thank you for this tutorial. How can i do this in different products with different min/max quantity rules? Should i just do the same coding 3 times (i only have 3 product bundles) or is there something specific i should do
Exactly what I needed excellent tutorial
Great video! My only critique is to enlarge the text for when you are highlighting the code portion because it is hard to read and follow along for a beginner like me. I was not sure whether you included parentheses or brackets.
This is good feedback, thanks!
Thank you! great video as always your channel has become my bible for all things Shopify :) I have set both min & box quantities as needed perfectly but is there a way to change the unit price displayed on the product page to reflect the min/box qty price instead? if I add the box qty price in the inventory it multiples it by the qty amount in the cart, any guidance would be amazing!
I can't find the cart locatiom for impulse theme
Great Video! Any change to use the metafields to change my quantity picker to decimals?
I am selling fabrics starting from 0.5M(starting point) and I want my customers to ad by clicking + always another 0.1M - up to 20.0M not more.
Well the team from Carson created such a price measurement calculator for me but since 2.0 came out it does not work the same way. Which means I have to pay them again to do it on 2.0. The question is simply... can those metafields somehow do that for me or do I need coding again?
Hi Ed, I appreciate your videos. But now I really need your help. How do I get the quantity to start at 0 and not 1. I sell by the dozen, and since it starts at 1, the quantity ends up at 13 and not 12 when you do the first jump. Please show me how to correct this somehow
i disabled manual input but it is not working on mobile devices
I’m a beginner and it was a bit hard to follow the jumping from one screen to another. I got to the part where I’ve set my box quantity, but after that, I couldn’t find the screens you were on even though my theme is Dawn. The coding part is hard and I have no idea what I’m doing
Hello, this worked great. But when we go to the cart page, over there how do we implement the same? As this is not working in the cart page.
I am trying to do this but I am using the Impulse theme and can't find where I need to edit the code. Do you know where that might be at ?
Still works in 2024! Thank you!
I am not using Dawn theme but I followed your instructions and it worked until I put the steps code in and the minimum stoped working and I went and watched your bulk editing video and it still won't allow me to put a minimum quantity in. I don't know what I'm doing wrong. If you got any ideas it would be much appreciated. I know with you not seeing my theme back office it will be challenging. Thanks in Advance.
I'm Stuck. How can I get your help?
Thank you so much for your videos and very good explanations. I was trying to follow the video with no success. I presume it's not compatible with Dawn 8.0. I could define and set the metafields correctly as you explained so well. But the values are being reset back to 1 all the time. Probably because of some js interfering.
hello, i managed to get this working on the updated Dawn 8.0 - it was initially resetting back to 1 when I copied my theme code over but after the 3rd attempt at re-doing it's working as it should so it is compatible :)
@@MP-nx9bo Hi, Thank you for taking the time to respond. The changes suggested here are not working on variations which is the case with my product and would require changing some js code, but I haven't found a solution for this yet.
Hi there, is there way to code the price to change as the quantity changes ive used apps but they dont work ?
i cant change my minimum quantity its stuck at 1 and i cant change it
Hello! I followed the video and instructions but when I completed it my quantity box now turned white and the them in my site the background is black. Do you know how to fix that?
I tried doing everything you said and to a certain point I got it working. I could get the part working where the products with the minimum quantity worked, but the rest of the products where the piece of code should say that they are 1, they are still blank. And the line of code that was supposed to fix that, the ==blank part, is not working for some reason even tho the rest of it does work.
Could you pleeease help me fix this? I think it shouldn't be too much trouble for you. Thanks!
This is a great video indeed. The only trouble I'm having is for the quantity field to reset when you click on another variant of the same product (e.g., clicking on size S, then size M, etc.). Is there any way to do this? I am using the free Taste theme. Thank you in advance.
O think the code changed, the minimum quantity still one but the boxed one works
Can you please do an update on this video? Many things have changed, and for some reason the quantity only shows up for a split second, then resets back to 1 MOQ. Thank you!
same happen to me. Brother you got any solution to this please tell?
@@akshi3139 Unfortunately no. I just gave up on the MOQ thing and looked for an app (all of which sucked or were expensive). Ended up not bothering with it, but I encourage you to check the apps or if there are any other solutions. Don't take my word for it.
Hi Ed! Thank you so much, managed to change it on the product page but the cart quantity keeps resetting to one even when the quantity added to cart from the product page with min quantity is 10. I'm using dawn theme and followed step by step but the if doesn't seem to be working. Could it be a Dawn 10.0.0 thing as I see that there is now a data-cart-quantity line below the value line which your code doesn't have. Help!
Hey Ed, thanks for your super helpful videos! The content is great, and your calm delivery makes it all easy to take in. The "step" aspect of your tutorial doesn't seem to work with my theme--I use pipeline by groupthought. How might I adjust?
The onkeydown="return false" code is super helpful. How might one incorporate code that would make onkeydown="return false" conditional on the existence of a minimum_qty value, so non-box items can be manually typed? Thanks in advance!
Hey, thanks for the support! Regarding step I'm afraid I can't really tell you without getting my hands on it and experimenting with the code. Maybe just check one thing - the input type is number and not text, right?
As for onkeydown="false" - you could just wrap that line in an if statement, like I show around 10:30, but use != blank (does not equal blank) to check that min quantity exists. Alternatively wrap the whole input in an if statement with an else containing the unmodified code, so that products without the metafield get the regular unmodified input.
@@EdCodes Thanks for getting back to me so fast! I suppose every theme has their own syntax for "step"--I'll ask the developer.
While it works onn its own, when I wrap onkeydown in an if statement, I get: "Liquid syntax error: Unknown tag 'onkeydown'". Does this happen for you or is there a workaround? Using the else method, is there a way I could wrap the whole input in a single else statement using both min_quantity and box_quantity metafields simultaneously?
Hi! It happens the same to me, I use theme turbo portland, can u help me? Thank You!!
Hello! Great video! The step atribute it's not working..! and also on the cart..! I'm using the theme Story. can you help me? BR
Just a quick question bro, how would I use this for boxes that contain a decimal value but I want to sell by the box?
Cheers.
Thanks Ed! Just curious if you've done this on the prestige them in Shopify? A bit more difficult to edit the code on my end.
I haven't worked with the newer prestige on Shopify 2.0 unfortunately.
Thanks for the tutorial, that's help me a lot ! +1
How could I make this with variants? If I define the metafield for variants it´s not work.
Thank you so much
Hello Ed, The codes works for product quantity + cart check quantity, however I have a min-cart which when I applied the code it doesn't work. Is there perhaps anything that needs to be add to the code?
This is great! It was exactly what I was looking for. Is there a way to enable and disable these quantity rules based on customer tags? So if I'm running retail and wholesale on the same site, can I set this minimum quantity so it only operates for tagged wholesale customers but not the retail customers?
im wondering this as well. did you ever figure it out?
@@SultanMehmet61 Unfortunately, I did not.
@@rachellongest1981 sucks. guess ill have to search harder.
hi can i set up this coding for only one collection? not all the shop
Can this be done on supply theme?
Are these instructions compatible with the new Dawn theme? I tried the code and the quantity keeps resetting to 1.
Hello
the same problem did you find a solution?
Hi, my product has variables, but l don't want to change each variable to min 6 l only what the total product QTY to be 6 purchased
Hi Ed, I just bought the Empire template and I just edited the code for the product template but when I tried to edit the cart template I couldn't find the part of the code. Do you know where I can edit it?
thanks so much for posting! the "step" attribute doesn't seem to be working for us either unfortunately. any tips on what to do?
Hi, which theme are you using?
how do you do debutify maximum amount?
when i put the cart code error keep comig. sayig the others line code are wrong so i can't save the change
Hey ED, i want to copy this function in my Shopify Account with Local Theme. It doesn`t work. Can you help me? How we can get together?
Hello, I want to offer a free product but maximum 1 quantity or maybe 2, and shipping $6. I did the shipping cost but I do not know how to set up the Offer to get a maximum 1 product, no more. Can you do a video? Tahnsk
I have followed every step but the step attribute is working in my case.
Price Change Based On Quantity is that possible ?
same query, please let me know if you have managed to figure this one out
so good!
Our theme is using a dropdown for quantity so this doesn't work :(
exactly what I needed, but there seems to be some compatibility issues with the latest Dawn Theme.
It will add +1 item. Lets say there is a box quantity set for 100 - it keeps adding steps 101, 201, 301.... any idea how to solve this?
Similar Issue. Did you find any solution to it?
@@Avinashsakariya no sorry - wish @Ed Codes would have replied where the issue might be, as the code in newer Dawn Versions looks different
Add ‘ data-min=“{{in your case this would be a metafield with a value of 100}}”
The step attribute is not working with my case. What should I do?
Hi, can you share your store address? I will take a look.
i used this method to increment the quantity selector as 0.5,1,1.5 but the price in the cart page shows the same for 0.5 and 1 and then 1.5 and 2, how can i solve this problem, can you please guide me.
HI me too looking for the same solution. Did you manage to do any workaround?
how to find the code in craft theme"
Hi, craft theme will be exactly the same as Dawn - its the same code.
Thanks bro
Any time
Using the trade theme. On the product page, everything works. On the cart page, everything works. But from the catalog page, all values begin at 0 (naturally because there is no "add to cart" button) but cant increase or decrease them. GIves me an error "Values can only be incremented by...." Tried everything. Looked through all the files. It has to be somewhere in card-product.liquid in the quick-add class. Trying to alter the +/- buttons to increase by min_quanitity (metafield) but no luck. Anybody out there that can help?