Hey Guys,
I am using Booster Theme and suddenly my add to cart button has stopped working on mobile devices . It works fine on desktop.I am unable to figure out what went wrong .Can someone please help me .
My store- spicystore.in
Thanks in advance
Hey Guys,
I am using Booster Theme and suddenly my add to cart button has stopped working on mobile devices . It works fine on desktop.I am unable to figure out what went wrong .Can someone please help me .
My store- spicystore.in
Thanks in advance
Please helpme
Thank you for the response and your code. I tried editing the code as you instructed me to but I am still not able to ADD To Cart. I am attaching screenshot of the code so you can verify if I did it right.
I am also attaching the error it shows when I try to add something to my cart.
Remove from the line 252 and it should work
Hello,
Thanks a lot for your valuable suggestion and help.You are a real gem my friend. The add to cart button is working fine now however the dynamic “Buy Now” button still shows the same error but I think I can manage without it unless I find a solution.
Thanks a lot.
Hi Diego:
“Add to Cart” button does not add to the cart when you click on it. But if you refresh the page after clicking the
button the item appears in the Cart. Can you help me?
URL: deuxbeautesparis.com
Futher to my mail, please find my Product-Template-Liquid
{{ product.vendor | link_to_vendor }}
{% endif %}{% if section.settings.display_product_reviews %}
{% endif %}
{% if product.description contains ‘[countdown]’ %}
{% assign count_down_first = product.description | split:‘[/countdown]’ | first %}
{% assign count_down_final = count_down_first | split:‘[countdown]’ | last %}
{% if section.settings.text_availability != blank %} {% if settings.enable_multilang %} {{ section.settings.text_availability | split: '|' | first }} {{ section.settings.text_availability | split: '|' | last }} {% else %} {{ section.settings.text_availability | split: '|' | first }} {% endif %} {% endif %} {% if product.selected_or_first_available_variant.inventory_management %} {% assign first_inventory = product.selected_or_first_available_variant.inventory_quantity %} {% if first_inventory > 0 %} {{first_inventory}} {{ 'products.product.in_stock' | t }} {% else %} {{ 'products.product.out_of_stock' | t }} {% endif %} {% else %} {{ 'products.product.many_in_stock' | t }} {% endif %}
{% endif %} {% if section.settings.display_product_type %}{% if section.settings.text_product_type != blank %} {% if settings.enable_multilang %} {{ section.settings.text_product_type | split: '|' | first }} {{ section.settings.text_product_type | split: '|' | last }} {% else %} {{ section.settings.text_product_type | split: '|' | first }} {% endif %} {% endif %} {{ product.type }}
{% endif %} {% if section.settings.display_vendor %}{% if section.settings.text_vendor != blank %} {% if settings.enable_multilang %} {{ section.settings.text_vendor | split: '|' | first }} {{ section.settings.text_vendor | split: '|' | last }} {% else %} {{ section.settings.text_vendor | split: '|' | first }} {% endif %} {% endif %} {{ product.vendor }}
{% endif %}{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]’ | last %}
{% if section.settings.show_desc == ‘short’ %}
{% if product.description contains ‘
[Description]
’ %}[Description]
’ | last | split:‘[/Description]
’ | first %}{% endif %}
{% elsif section.settings.show_desc == ‘full’ %}
{% if settings.enable_multilang %}
[Description]
' %} {% assign des1 = product.description | split:'[Description]
' | last | split:'[/Description]
' | first %} {% if settings.enable_multilang %}{% comment %}
{% if section.settings.display_size_chart %}
{% include ‘multilang’ with section.settings.custom_size_chart_title %}
{% endcomment %}
{% assign variantCount = product.variants | size %}
{% if product.available %}
{% if variantCount > 1 %}
{% if settings.use_color_swatch %}
{% for option in product.options %}
{% include ‘swatch’ with option %}
{% endfor %}
{% endif %}
{% else %}
{% endif %}
{% endif %}
{% if product.available %}
<label for=“quantity” {% if settings.enable_multilang %}data-translate=“cart.label.quantity”{%endif%}>{{ ‘cart.label.quantity’ | t }}:
{% if section.settings.display_subtotal and product.available %}
<input type=“submit” name=“add” class=“btn” {% if settings.enable_multilang %}data-translate=“products.product.add_to_cart”{%endif%} id=“product-add-to-cart” value=“{{ ‘products.product.add_to_cart’ | t }}”>
{% else %}
<input type=“submit” name=“add” class=“btn” {% if settings.enable_multilang %}data-translate=“products.product.unavailable”{%endif%} id=“product-add-to-cart” disabled value=“{{ ‘products.product.unavailable’ | t }}”>
{% endif %}
{% include ‘wishlist-product’ %}
{% if section.settings.display_product_detail_tag %}
{% if section.settings.display_product_detail_share %}
{% comment %}
{% include ‘share’ with product %}
{% endcomment %}
{{ section.settings.text_share | split: '|' | first }}
{{ section.settings.text_share | split: '|' | last }}
{% else %}{{ section.settings.text_share | split: '|' | first }}
{% endif %}{% if section.settings.show_tab == ‘vertical’ %}
{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]
{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if des contains ‘
[/Description]
’%}[Description]
’ | first %}{% if settings.enable_multilang %}
{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{% if section.settings.display_product_reviews %}
{% if section.settings.show_tab == ‘horizontal’ %}
{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]
{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{{ ‘option_selection.js’ | shopify_asset_url | script_tag }}
{% schema %}
{
“name”: “Product Detail”,
“settings”: [
{
“type”: “radio”,
“id”: “style_moreview”,
“label”: “Horizontal Moreview or Vertical Moreview”,
“options”: [
{
“value”: “horizontal”,
“label”: “Horizontal Moreview”
},
{
“value”: “vertical”,
“label”: “Vertical Moreview”
}
],
“default”: “vertical”
},
{
“type”: “checkbox”,
“id”: “display_prev_next_product”,
“label”: “Display Prev/Next Product?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_availability”,
“label”: “Display Availability?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_availability”,
“label”: “Text Availability”,
“default”: “Availability”
},
{
“type”: “checkbox”,
“id”: “display_product_type”,
“label”: “Display Product Type?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_product_type”,
“label”: “Text Product Type”,
“default”: “Product Type”
},
{
“type”: “checkbox”,
“id”: “display_vendor”,
“label”: “Display Vendor?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_vendor”,
“label”: “Text Vendor”,
“default”: “Vendor”
},
{
“type”: “text”,
“id”: “text_countdown”,
“label”: “Text Countdown”,
“default”: “Limited-Time Offers, End in:”
},
{
“type”: “radio”,
“id”: “show_desc”,
“label”: “Short description”,
“options”: [
{
“value”: “no-show”,
“label”: “No”
},
{
“value”: “short”,
“label”: “Yes”
},
{
“value”: “full”,
“label”: “Show Full Description”
}
],
“default”: “short”
},
{
“type”: “checkbox”,
“id”: “display_subtotal”,
“label”: “Display Subtotal?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_product_detail_tag”,
“label”: “Display Tags?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_product_detail_share”,
“label”: “Display Product Share?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_share”,
“label”: “Text Share”
},
{
“type”: “radio”,
“id”: “show_tab”,
“label”: “Horizontal Tab or Vertical Tab”,
“options”: [
{
“value”: “horizontal”,
“label”: “Horizontal Tab”
},
{
“value”: “vertical”,
“label”: “Vertical Tab”
}
],
“default”: “horizontal”
},
{
“type”: “checkbox”,
“id”: “display_product_detail_description”,
“label”: “Display Product Description?”,
“default”: true
},
{
“type”: “text”,
“id”: “product_description_title”,
“label”: “Product Description Title”,
“default”: “Product Description”
},
{
“type”: “checkbox”,
“id”: “display_product_reviews”,
“label”: “Display Product Reviews?”,
“default”: true
},
{
“type”: “text”,
“id”: “product_review_title”,
“label”: “Product Reviews Title”,
“default”: “Customer Reviews”
},
{
“type”: “checkbox”,
“id”: “display_custom_tab”,
“label”: “Display Custom Tab?”,
“default”: true
},
{
“type”: “text”,
“id”: “custom_tab_title”,
“label”: “Custom Tab Title”,
“default”: “Shipping & Returns”
},
{
“type”: “textarea”,
“id”: “custom_tab_content”,
“label”: “Custom Tab HTML Code”
},
{
“type” : “header”,
“content” : “Tab Video”
},
{
“type”: “checkbox”,
“id”: “display_custom_video”,
“label”: “Display Custom Video?”,
“default”: true
},
{
“type”: “text”,
“id”: “video_tab_title”,
“label”: “Video Tab Title”,
“default”: “Video”
},
{
“type”: “textarea”,
“id”: “custom_tab_video”,
“label”: “iframe Youtube”
},
{
“type”: “checkbox”,
“id”: “display_size_chart”,
“label”: “Display Size Chart?”,
“default”: true
},
{
“type”: “text”,
“id”: “custom_size_chart_title”,
“label”: “Custom Size Chart Title”,
“default”: “Size Chart”
},
{
“type”: “image_picker”,
“id”: “custom_size_chart”,
“label”: “Size Chart Image”
}
]
}
{% endschema %}
Furthe to my mail, please find my product-template.liquid
{{ product.vendor | link_to_vendor }}
{% endif %}{% if section.settings.display_product_reviews %}
{% endif %}
{% if product.description contains ‘[countdown]’ %}
{% assign count_down_first = product.description | split:‘[/countdown]’ | first %}
{% assign count_down_final = count_down_first | split:‘[countdown]’ | last %}
{% if section.settings.text_availability != blank %} {% if settings.enable_multilang %} {{ section.settings.text_availability | split: '|' | first }} {{ section.settings.text_availability | split: '|' | last }} {% else %} {{ section.settings.text_availability | split: '|' | first }} {% endif %} {% endif %} {% if product.selected_or_first_available_variant.inventory_management %} {% assign first_inventory = product.selected_or_first_available_variant.inventory_quantity %} {% if first_inventory > 0 %} {{first_inventory}} {{ 'products.product.in_stock' | t }} {% else %} {{ 'products.product.out_of_stock' | t }} {% endif %} {% else %} {{ 'products.product.many_in_stock' | t }} {% endif %}
{% endif %} {% if section.settings.display_product_type %}{% if section.settings.text_product_type != blank %} {% if settings.enable_multilang %} {{ section.settings.text_product_type | split: '|' | first }} {{ section.settings.text_product_type | split: '|' | last }} {% else %} {{ section.settings.text_product_type | split: '|' | first }} {% endif %} {% endif %} {{ product.type }}
{% endif %} {% if section.settings.display_vendor %}{% if section.settings.text_vendor != blank %} {% if settings.enable_multilang %} {{ section.settings.text_vendor | split: '|' | first }} {{ section.settings.text_vendor | split: '|' | last }} {% else %} {{ section.settings.text_vendor | split: '|' | first }} {% endif %} {% endif %} {{ product.vendor }}
{% endif %}{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]’ | last %}
{% if section.settings.show_desc == ‘short’ %}
{% if product.description contains ‘
[Description]
’ %}[Description]
’ | last | split:‘[/Description]
’ | first %}{% endif %}
{% elsif section.settings.show_desc == ‘full’ %}
{% if settings.enable_multilang %}
[Description]
' %} {% assign des1 = product.description | split:'[Description]
' | last | split:'[/Description]
' | first %} {% if settings.enable_multilang %}{% comment %}
{% if section.settings.display_size_chart %}
{% include ‘multilang’ with section.settings.custom_size_chart_title %}
{% endcomment %}
{% assign variantCount = product.variants | size %}
{% if product.available %}
{% if variantCount > 1 %}
{% if settings.use_color_swatch %}
{% for option in product.options %}
{% include ‘swatch’ with option %}
{% endfor %}
{% endif %}
{% else %}
{% endif %}
{% endif %}
{% if product.available %}
<label for=“quantity” {% if settings.enable_multilang %}data-translate=“cart.label.quantity”{%endif%}>{{ ‘cart.label.quantity’ | t }}:
{% if section.settings.display_subtotal and product.available %}
<input type=“submit” name=“add” class=“btn” {% if settings.enable_multilang %}data-translate=“products.product.add_to_cart”{%endif%} id=“product-add-to-cart” value=“{{ ‘products.product.add_to_cart’ | t }}”>
{% else %}
<input type=“submit” name=“add” class=“btn” {% if settings.enable_multilang %}data-translate=“products.product.unavailable”{%endif%} id=“product-add-to-cart” disabled value=“{{ ‘products.product.unavailable’ | t }}”>
{% endif %}
{% include ‘wishlist-product’ %}
{% if section.settings.display_product_detail_tag %}
{% if section.settings.display_product_detail_share %}
{% comment %}
{% include ‘share’ with product %}
{% endcomment %}
{{ section.settings.text_share | split: '|' | first }}
{{ section.settings.text_share | split: '|' | last }}
{% else %}{{ section.settings.text_share | split: '|' | first }}
{% endif %}{% if section.settings.show_tab == ‘vertical’ %}
{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]
{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if des contains ‘
[/Description]
’%}[Description]
’ | first %}{% if settings.enable_multilang %}
{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{% if section.settings.display_product_reviews %}
{% if section.settings.show_tab == ‘horizontal’ %}
{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{% if product.description contains ‘[countdown]’ %}
{% assign des = product.description | split:‘[/countdown]
{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if des contains ‘
[Description]
’%}[Description]
’ | first %}{% if section.settings.display_custom_tab %}
{% if section.settings.display_custom_video %}
{{ ‘option_selection.js’ | shopify_asset_url | script_tag }}
{% schema %}
{
“name”: “Product Detail”,
“settings”: [
{
“type”: “radio”,
“id”: “style_moreview”,
“label”: “Horizontal Moreview or Vertical Moreview”,
“options”: [
{
“value”: “horizontal”,
“label”: “Horizontal Moreview”
},
{
“value”: “vertical”,
“label”: “Vertical Moreview”
}
],
“default”: “vertical”
},
{
“type”: “checkbox”,
“id”: “display_prev_next_product”,
“label”: “Display Prev/Next Product?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_availability”,
“label”: “Display Availability?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_availability”,
“label”: “Text Availability”,
“default”: “Availability”
},
{
“type”: “checkbox”,
“id”: “display_product_type”,
“label”: “Display Product Type?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_product_type”,
“label”: “Text Product Type”,
“default”: “Product Type”
},
{
“type”: “checkbox”,
“id”: “display_vendor”,
“label”: “Display Vendor?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_vendor”,
“label”: “Text Vendor”,
“default”: “Vendor”
},
{
“type”: “text”,
“id”: “text_countdown”,
“label”: “Text Countdown”,
“default”: “Limited-Time Offers, End in:”
},
{
“type”: “radio”,
“id”: “show_desc”,
“label”: “Short description”,
“options”: [
{
“value”: “no-show”,
“label”: “No”
},
{
“value”: “short”,
“label”: “Yes”
},
{
“value”: “full”,
“label”: “Show Full Description”
}
],
“default”: “short”
},
{
“type”: “checkbox”,
“id”: “display_subtotal”,
“label”: “Display Subtotal?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_product_detail_tag”,
“label”: “Display Tags?”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “display_product_detail_share”,
“label”: “Display Product Share?”,
“default”: true
},
{
“type”: “text”,
“id”: “text_share”,
“label”: “Text Share”
},
{
“type”: “radio”,
“id”: “show_tab”,
“label”: “Horizontal Tab or Vertical Tab”,
“options”: [
{
“value”: “horizontal”,
“label”: “Horizontal Tab”
},
{
“value”: “vertical”,
“label”: “Vertical Tab”
}
],
“default”: “horizontal”
},
{
“type”: “checkbox”,
“id”: “display_product_detail_description”,
“label”: “Display Product Description?”,
“default”: true
},
{
“type”: “text”,
“id”: “product_description_title”,
“label”: “Product Description Title”,
“default”: “Product Description”
},
{
“type”: “checkbox”,
“id”: “display_product_reviews”,
“label”: “Display Product Reviews?”,
“default”: true
},
{
“type”: “text”,
“id”: “product_review_title”,
“label”: “Product Reviews Title”,
“default”: “Customer Reviews”
},
{
“type”: “checkbox”,
“id”: “display_custom_tab”,
“label”: “Display Custom Tab?”,
“default”: true
},
{
“type”: “text”,
“id”: “custom_tab_title”,
“label”: “Custom Tab Title”,
“default”: “Shipping & Returns”
},
{
“type”: “textarea”,
“id”: “custom_tab_content”,
“label”: “Custom Tab HTML Code”
},
{
“type” : “header”,
“content” : “Tab Video”
},
{
“type”: “checkbox”,
“id”: “display_custom_video”,
“label”: “Display Custom Video?”,
“default”: true
},
{
“type”: “text”,
“id”: “video_tab_title”,
“label”: “Video Tab Title”,
“default”: “Video”
},
{
“type”: “textarea”,
“id”: “custom_tab_video”,
“label”: “iframe Youtube”
},
{
“type”: “checkbox”,
“id”: “display_size_chart”,
“label”: “Display Size Chart?”,
“default”: true
},
{
“type”: “text”,
“id”: “custom_size_chart_title”,
“label”: “Custom Size Chart Title”,
“default”: “Size Chart”
},
{
“type”: “image_picker”,
“id”: “custom_size_chart”,
“label”: “Size Chart Image”
}
]
}
{% endschema %}
Hi,
My cart is not working properly, it just keeps on loading please help.
My website is live http://highheelhierarchy.com/
My add to cart is only working on some products can anyone explain why?
maxaan ka caawiyaa
Is this something that already would come with the app or is this something that needs to be added additionally?