Hey guys, here is an example of my “continue shopping” button. When I click it, it takes me to a random page with half of my products. I need it to be redirected back to home page.
Password: Tiger100k
Thanks! Pls help ASAP
Hey guys, here is an example of my “continue shopping” button. When I click it, it takes me to a random page with half of my products. I need it to be redirected back to home page.
Password: Tiger100k
Thanks! Pls help ASAP
Hi @CarsonTowt
Hope you’re having a great day!
By following the steps below, could you share the content of sections/cart-template.liquid file?
{% if cart.item_count == 0 %}
{{ 'cart.general.continue_browsing_html' | t }}
{{ 'cart.general.continue_browsing_html' | t }}
{% for item in cart.items %}
{% if item.variant.compare_at_price > item.variant.price %}
{%- assign saving = item.variant.compare_at_price | minus: item.variant.price | times: item.quantity -%}
{%- assign total_saving = saving | plus: total_saving -%}
{% endif %}
{% unless item.product.has_only_default_variant or item.variant.title contains “Title” %}
{% for option in item.product.options %}
{{ option }}: {{ item.variant.options[forloop.index0] }}
{% endfor %}
{% if item.properties %}
{% for p in item.properties %} {% unless p.last == blank %} {% if p.last contains '/uploads/' %}
{% if item.price > 0 %} {% render 'price-element', price: item.final_price %}
{% if item.price < item.variant.compare_at_price or item.line_level_discount_allocations.size > 0 %}
{%
render ‘price-element’,
price: item.variant.compare_at_price
%}
{% endif %}
{% else %}
{{ settings.free_price_text }}
{% endif %}
{%
render ‘unit-price’,
item: item,
variant: item.variant,
product: item.product,
class: ‘cart__item-unit-price’
%}
{% if item.line_level_discount_allocations.size > 0 %}
{% for discount_allocation in item.line_level_discount_allocations %}
{{ 'cart.general.discount' | t }}: {{ discount_allocation.discount_application.title }} (- {% render 'price-element', price: discount_allocation.amount %} )
{% endfor %} {% endif %}<input type=“number” min=“0” size=“2” class=“quantity” name=“updates” id=“updates_{{ item.id }}” value=“{{ item.quantity }}” data-cart-quantity-input=“cart-template” {% if settings.limit_quantity and item.variant.inventory_management != blank and item.variant.inventory_quantity > 0 and item.variant.inventory_policy == “deny” %}max=“{{ item.variant.inventory_quantity }}”{% endif %} />
{{ 'cart.general.total' | t }}:
{% if item.line_level_discount_allocations.size > 0 %}
{%
render ‘price-element’,
price: item.final_line_price
%}
{% endif %}
{% for discount_application in cart.cart_level_discount_applications %} {{ discount_application.title }} - {% render 'price-element', price: discount_application.total_allocated_amount %} {% endfor %}
{% endif %}{% render 'price-element', price: cart.total_price %} {{ 'cart.general.subtotal' | t }}
{% if section.settings.display_savings and total_saving > 0 or section.settings.display_savings and cart.total_discount > 0 %}
{% assign total_savings = total_saving | plus: cart.total_discount %} {% render 'price-element', price: total_savings %} {{ 'layout.general.savings' | t }}
{% endif %}{% unless shop.enabled_currencies.size > 1 %}
{{ 'cart.general.orders_processed_in_currency_html' | t: currency: shop.currency }}
{% endunless %}{% if section.settings.display_special_instructions %}
{{ ‘cart.general.note’ | t: shop_name: shop.name }}:
{% endif %}
{% if settings.display_tos_checkbox %}
{{ 'cart.general.agree_to_terms_html' | t }}
{% if settings.tos_page != blank %}
{{ ‘cart.general.view_terms’ | t }}
{% endif %}
{% if section.settings.cart_message != blank %}
{{ section.settings.cart_message }}
{% endif %}
{% if settings.show_lock_icon %}{% endif %}{{ 'cart.general.checkout' | t }}
{% if content_for_additional_checkout_buttons %}{% if cart.item_count > 0 %}
{{ ‘cart.general.continue_shopping_link_html’ | t }}
{% endif %}
{% render ‘cart-shipping-calculator’ %}
{% schema %}
{
“name”: “Cart page”,
“class”: “shopify-section–cart-template”,
“settings”: [
{
“type”: “checkbox”,
“id”: “display_special_instructions”,
“label”: “Show "note" text box”
},
{
“type”: “checkbox”,
“id”: “display_savings”,
“label”: “Show total savings”,
“default”: true
},
{
“type”: “richtext”,
“id”: “cart_message”,
“label”: “Cart message”
}
],
“blocks”: [
{
“type”: “featured_collection”,
“name”: “Featured collection”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “You may also be interested in”
},
{
“type”: “checkbox”,
“id”: “collection_description”,
“label”: “Show collection description”,
“default”: false
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “radio”,
“id”: “collection_style”,
“label”: “Collection layout”,
“default”: “grid”,
“options”: [
{
“value”: “slider”,
“label”: “Slider”
},
{
“value”: “grid”,
“label”: “Grid”
}
]
},
{
“type”: “range”,
“id”: “products_per”,
“label”: “Products per row”,
“min”: 2,
“max”: 7,
“step”: 1,
“default”: 6
},
{
“type”: “range”,
“id”: “products_limit”,
“label”: “Limit products”,
“min”: 2,
“max”: 50,
“step”: 1,
“default”: 6
}
]
}
]
}
{% endschema %}