How can I remove quantity box

emilianogr
Excursionist
21 0 5

Hello, I want to remove the quantity box option, I'm new with this so if you could explain me step by step I will appreciate it so much!

I am using jumpstart theme

Thank you

Hello 

 

 

 

 

Want to modify or custom changes on store hire me.

If helpful then please Like and Accept Solution.
Email: pallavi@oscprofessionals.com

 

 

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes
Rick_Neeley
Tourist
9 0 0

Thank you so much! :)


@oscprofessional wrote:

Hello 

 

 

 

 

Want to modify or custom changes on store hire me.

If helpful then please Like and Accept Solution.
Email: pallavi@oscprofessionals.com

 

 


 

0 Likes
RandaEissa
New Member
2 0 1

Hi i Tried this method but didnt work, also the code u said that will be there, it isnt there.

 

this is all i have in my Product liquid

{% comment %}
The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}

{% section 'product-template' %}
{% section 'product-recommendations' %}

{% if collection %}
<div class="text-center return-link-wrapper page-width">
<a href="{{ collection.url }}" class="btn btn--secondary btn--has-icon-before return-link">
{% include 'icon-arrow-left' %}
{{ 'products.product.back_to_collection' | t: title: collection.title }}
</a>
</div>
{% endif %}
<script>
// Override default values of shop.strings for each template.
// Alternate product templates can change values of
// add to cart button, sold out, and unavailable states here.
theme.productStrings = {
addToCart: {{ 'products.product.add_to_cart' | t | json }},
soldOut: {{ 'products.product.sold_out' | t | json }},
unavailable: {{ 'products.product.unavailable' | t | json }}
}
</script>

{% assign current_variant = product.selected_or_first_available_variant %}

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": {{ product.title | json }},
"url": {{ shop.url | append: product.url | json }},
{%- if product.featured_media -%}
{%- assign media_size = product.featured_media.preview_image.width | append: 'x' -%}
"image": [
{{ product.featured_media | img_url: media_size | prepend: "https:" | json }}
],
{%- endif -%}
"description": {{ product.description | strip_html | json }},
{%- if current_variant.sku != blank -%}
"sku": {{ current_variant.sku | json }},
{%- endif -%}
"brand": {
"@type": "Thing",
"name": {{ product.vendor | json }}
},
"offers": [
{%- for variant in product.variants -%}
{
"@type" : "Offer",
{%- if variant.sku != blank -%}
"sku": {{ variant.sku | json }},
{%- endif -%}
"availability" : "http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}",
"price" : {{ variant.price | divided_by: 100.00 | json }},
"priceCurrency" : {{ cart.currency.iso_code | json }},
"url" : {{ shop.url | append: variant.url | json }}
}{% unless forloop.last %},{% endunless %}
{%- endfor -%}
]
}
</script>

 

so where can i apply {%comment%}{%endcomment%}? which code should i remove?

0 Likes
Comfort1
New Member
1 0 0

Where is sections and how do i get there

0 Likes
Aniwa
New Member
1 0 0

Which part do i remove? And where do i start?

0 Likes
suyash1
Shopify Partner
2712 285 450

@Aniwa - go to product template section, you will have all content in it.

You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
Kamal81
Excursionist
13 1 0

Guys, 

 

How to hid quantity box in product pages for gift cards only? I need to have it on all other products except the gift cards. How to do that?

0 Likes
suyash1
Shopify Partner
2712 285 450

@Kamal81 - can you please share gift card product? it should have unique class than other products, if it does not have then we may need to create new template for it

You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
Kamal81
Excursionist
13 1 0

Hi @suyash1 ,

 

Thank you for your prompt reply. 

 

I guess I figured out how to do it. I did create a template and section for giftcards and I hide the quantity box but now I got another issue which is I want the gift card to show one button "add to cart" or Buy now. Currently, it shows two as you see below and showing social sharing buttons which are not needed as well. Also, there is a huge space between the card value field and the button, how to minimize it?

Kamal81_1-1618805962810.png

Thanks so much

Kam

 

 

0 Likes