I would like to add a quantity selector next to the quick add button for all products in the Dawn theme.
There is a post that is similar to this question here.
This post adds a feature to disable the link which i’ve tried to remove from the code with no success.
Any help would be appreciated.
Thanks in advance.
1 Like
Hi @williamjames78
- From you Admin page, go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
- Go to Snippet folder and open the card_product.liquid file. If you have Dawn version 2.5 and below, open the product_card.liquid instead
- Find the code below
{%- form 'product',
card_product,
id: product_form_id,
class: 'form',
novalidate: 'novalidate',
data-type: 'add-to-cart-form'
-%}
- Create a line after the code by pressing ENTER button. Then paste the code below
See image below for reference:
- Make sure to SAVE
Great thanks for the help, it worked!
1 Like
Thanks for the help with this, now if i want to get my add to cart button aligned with the quantity selector instead of below and to the right what and where would i have to add.
See attached image.