Bolt theme products not adding to wishlist page

Topic summary

A user is experiencing an issue where products are not being added to their wishlist page despite having created the page and implemented the necessary code files.

Technical Setup:

  • Three Liquid template files are in place: page.wishlist.liquid, wishlist-product.liquid, and wishlist.liquid
  • The wishlist functionality appears to use customer tags to track saved products
  • Code includes forms for adding/removing items and login prompts for non-authenticated users

Current Problem:

  • Clicking “Add to Wishlist” does not populate the wishlist page
  • The wishlist remains empty despite the page existing
  • A preview URL was provided for troubleshooting

Status:

  • No responses or solutions have been posted yet
  • The issue remains unresolved and awaiting community assistance
Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

When I click add to wishlist it does not add the item to the wishlist. The wishlist is empty. I created the page for it and it exist. https://1cvgwd0p3awfhvet-73910124865.shopifypreview.com

Thanks in advance!

page.wishlist.liquid

{% include ‘wishlist’ %}

wishlist-product.liquid

{% if customer %}
{% assign value = product.id %}
{% capture productID %}{{ product.id }}{% endcapture %}
{% for tag in customer.tags %}
{% capture tagID %}{{ tag }}{% endcapture %}
{% if tagID contains productID %}
{% capture value %}x{{ tagID }}{% endcapture %}
{% endif %}
{% if value.size == 0 %}{% assign value = productID %}{% endif %}
{% endfor %}

{% unless value.size == 0 %}
{% capture check %}{{ value.size | minus:productID.size | money_without_currency | times:100 | divided_by:2 }}{% endcapture %}
{% assign check = check | split:‘.’ %}
{% if check[1] contains “5” %}{% assign display = false %}{% else %}{% assign display = true %}{% endif %}
{% endunless %}

{% if display %}
{% form ‘customer’ %}


Add to Wishlist
{% endform %}
{% else %}
Add to wishlist

{% endif %}
{% else %}
Add to wishlist
{% endif %}

wishlist.liquid

{% if customer %}

Wishlist

{% for tag in customer.tags %} {% assign the_test = 'nutthin' %} {% capture tag_id %}{{ tag }}{% endcapture %} {% assign tag_size = tag_id.size %} {% for tag in customer.tags %} {% capture cur_tag %}{{ tag }}{% endcapture %} {% if cur_tag contains tag_id %} {% assign difference = tag_size | minus:cur_tag.size %} {% if difference == 0 %} {% assign the_test = tag_id %} {% else %} {% assign the_test = 'nutthin' %} {% endif %} {% endif %} {% endfor %}

{% for collection in collections %}
{% paginate collection.products by collection.all_products_count %}
{% for product in collection.products %}
{% capture product_id %}{{ product.id }}{% endcapture %}
{% unless used contains product_id %}
{% capture diff %}{{ tag_size | minus:product_id.size | money_without_currency | times:100 | divided_by:2 }}{% endcapture %}
{% assign check = diff | split:‘.’ %}
{% if check[1] contains ‘5’ %}{% assign display = false %}{% else %}{% assign display = true %}{% endif %}
{% if display and the_test contains product_id %}

{% capture used %}{{ product_id }} {{ used }}{% endcapture %}
{% endif %}
{% endunless %}
{% endfor %}
{% endpaginate %}
{% endfor %}
{% endfor %}

  Product Name Price Action  

{{ product.title }}

{{ product.price | money }} Add to Cart

{% capture subject %}My%20{{ shop.name | replace: ’ ‘,’%20’ }}%20Wish%20List{% endcapture %}
{% capture body %}I’ve%20added%20the%20following%20items%20to%20my%20wish%20list%20at%20{{ shop.name | replace: ’ ‘,’%20’ }}{% endcapture %}
{% capture body %}{{ body }}{% for tag in customer.tags %}{% assign the_test = ‘nutthin’ %}{% capture tag_id %}{{ tag }}{% endcapture %}{% assign tag_count = 0 %}{% assign tag_size = tag_id | size %}{% for tag in customer.tags %}{% capture cur_tag %}{{ tag }}{% endcapture %}{% if cur_tag contains tag_id %}{% assign cur_tag_size = cur_tag | size %}{% assign difference = tag_size | minus: cur_tag_size %}{% if difference == 0 %}{% assign the_test = tag_id %}{% else %}{% assign the_test = ‘nutthin’ %}{% endif %}{% endif %}{% endfor %}{% for collection in collections %}{% paginate collection.products by collection.all_products_count %}{% for p in collection.products %}{% capture pID %}{{ p.id }}{% endcapture %}{% unless email_used contains pID %}{% capture difference %}{{ tag_size | minus:pID.size | money_without_currency | times:100 | divided_by: 2 }}{% endcapture %}{% assign check = difference | split:‘.’ %}{% if check[1] contains ‘5’ %}{% assign display = false %}{% else %}{% assign display = true %}{% endif %}{% if display and the_test contains pID %}%0A%0A{{ p.title | replace: ’ ‘,’%20’ }}%3A%20%20{{ shop.url }}{{ p.url }}{% capture email_used %}{{ pID }} {{ email_used }}{% endcapture %}{% endif %}{% endunless %}{% endfor %}{% endpaginate %}{% endfor %}{% endfor %}{% endcapture %}



Share my wish list via email
{% else %}

To create a wish list you must sign in or create an account.

{% endif %}