I’d like to add a quantity selector on my collection page.
Can someone please show me how? I’m using the Dawn theme.
I’d like to add a quantity selector on my collection page.
Can someone please show me how? I’m using the Dawn theme.
Hello, @jiane I completely understood that you want to add a quantity selector to the Collection page but the Dawn theme does not support this feature by default.
You need to ask or Hire a Shopify developer to add this feature.
Thank you
Thanks for that. I’ve actually got it to appear on my card-product.liquid. However the quantity is not reflected in the cart. Here’s the code that I’ve applied. Is there a fix on this?
{%- if 'quantity_selector' -%}
{%endif%}
Hello, @jiane I will need to analyze it by entering into your Shopify store.
Without having the full code, I am not able to provide you with the perfect solution.
Thank you
Hi Jiane,
The code you’ve provided seems to be ok however there’s a potential issue with the {% if ‘quantity_selector’ -%} condition. It appears that you want to check whether the variable ‘quantity_selector’ is defined, but the condition as written will always evaluate to true because it’s just checking if the string ‘quantity_selector’ is non-empty. To properly check if the ‘quantity_selector’ variable is defined, you should use {% if quantity_selector -%}.
Here’s the corrected code:
{%- if quantity_selector -%}
{%- endif -%}
Danny
Hi Jiane, thanks for the help. Where do you put the lines on card-product.liquid. ? Thanks