Hello,
I’m working on Shopify theme development step by step. When I build out my cart page and add items to it, it redirects my theme to a /cart/add url path, instead of the /cart path and I have to manually remove the /add part. Additionally, I can’t see any items I add to the cart, but I can see any other liquid elements I add to my cart.liquid page. Any help or suggestions? Code below from my cart.liquid page:
{% form 'cart', cart %}
# Cart
{% if cart.empty? %}
Cart is empty
{% else %}
{% for item in cart.items %}
## {{ item.title }}
{{ item.final_line_price | money }}
Remove
{% endfor %}
---
{% endif %}
Total: {{ cart.total_price | money }}
{% endform %}
Code from my theme.liquid:
{% comment %}
main connecting point for pages
{% endcomment %}
<html>
<head>
{% comment %}
required
{% endcomment %}
{{ content_for_header }}
</head>
<body>
{% comment %} Renders your sections or snippets. this renders your header snippet {% endcomment %}
{% render 'header' %}
{{ content_for_layout }}
</body>
<footer>
{% render 'footer' %}
</footer>
</html>
Thank you for any help