Trying to implement the add to cart button to product cart

Hi,

I trying to implement “add to cart” button from my product page, to my product card, but I not sure why the quantity button also show together.

I don’t want the thing inside the red circle to show, but I can’t seems to find the code to delete in my coding, can anyone tell me how to do it?

Hereby is my coding:

{% if onboarding %}

{% else %}

{% unless collection_handles contains 'coming-soon' %}

{%
render 'product-form',
product: product,
context: 'product',
collection_handles: collection_handles,
show_recipient_form: block.settings.show_gift_card_recipient_form,
show_payment_button_quickshop: show_payment_button_quickshop
%}

{%
render 'product-notify-me',
product: product,
variant: selected_variant
%}
{% endunless %}
{% endif %}

Here is my website: https://1cabe3-26.myshopify.com/

Thank you.

Hey @Mentorpublish

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hello @Mentorpublish

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.product-form__quantity-box{ display: none !important; } .product-form__quantity-box-wrapper { display: none !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

1 Like

Hi @Moeed ,

It worked, thank you for your help.

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.