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.
Moeed
July 29, 2024, 8:29am
2
Hey @Mentorpublish
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
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
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
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.
Moeed
July 29, 2024, 10:00am
5
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.