Hi, I have the Debutify theme and I would like to create a new product page template that does not have the quantity selector. If anyone can provide any advice it would be appreciated.
Thanks
Hi, I have the Debutify theme and I would like to create a new product page template that does not have the quantity selector. If anyone can provide any advice it would be appreciated.
Thanks
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
also do you have hide only custom product template quantity selector right?
Find the theme you want to edit, and then click Actions > Edit code.
Thanks, here is an example page https://www.familycrafts.co.uk/collections/family-tree/products/engraved-white-family-tree-tags-bold-font?variant=39370657071147
The reason I have created the page this way is that the quantity and the family name heart have a cost assigned to them independently. If I use the standard quantity then it add up both figures and creates a total, but the quantity you can select 10 at a cost each but the family name you can only select 1 with a cost.
I just want to be able to remove the quantity that comes with the template page.
I did this when i was using the shopify minimal theme, that was easy but the Debutify theme has the information split up in various areas and i cannot work out where the required information is to hide the quantity selector
Hi
I did this myself as you have instructed when I was using the Shopify Minimal theme, that was easy but the Debutify theme has the information split up in various areas and I cannot work out where the required information is to hide the quantity selector.
I have created a new template but there is very little code, there is another page in snippets that seems to hold most of the code, but nothing works regarding the quantity selector.
Thanks
Yes, you are right. I just checked the code of the Debutify theme. It has different structure.
You have to create template from template folder. Copy the default code to the new template change the section product template name.
Go to the section folder create new section and copy the default product-template.liquid section file code to the new section file. As the previously we have done change the include product template name ( this will be found in snippets folder)
Go to snippets folder and copy the default code of snippets product-templete file. In the snippets product template you will get quanity selector code.
{% if section.settings.quantity_enabled %}
{% include 'quantity-selector', type:'product' %}
{% endif %}
For your new template, you have to remove or comment on this code from the snippet’s newly created file.
I am not sure it will work 100% but this is the rough idea so you can try and make it work.
I really appreciate the assistance
Step 1, so I have created a new product template and called it product.no.quantity, I have copied the default product template code to this new template.
Step 2, I have created a new section template and this is called product-no-quantity, I have copied the default product section template code to this file. I have changed the section in the product.no.quantity template file to the new section file product-no-quantity.
This is the copied code in the product-no-quantity section template
Step 3, this is where I lose you, do I create a new product-no-quantity snippet file and copy the original product snippet code to this file? If so how do I reference this file, I have referenced the section file from the template file as step 2 above, but I cannot see how to reference the snippet file.
I have found code in the snippet file line 457 below, so I am assuming I need to comment this code out?
Resolved
added the following line into the default product-template.liquid, the one in the snippets section. This allows me to add a “no quantity” tag to the products I don’t want the quantity selector showing on.
{% if product.tags contains “noquantity” %}{% else %}
Thanks
Lee
Hi Familycrafts,
I want to do exactly the same thing for my online store. I tried to copy the code above in the template you mentioned, but I get an error. Could you please help me out? I pasted exactly this: {% if product.tags contains “noquantity” %}{% else %} at the end of the template, please see screenshot.
I get an error: ‘if’ tag was never closed.
Thanks in advance.
Kind regards,
Chet