Issue with a mockup button not adding to cart

Highlighted
New Member
1 0 0

Hi

We had a site customised a few years ago and we have a few issues.

Our Mockup button is not adding the item to the cart. Here is the link to a product https://www.misslolo.co.nz/products/anise-cushion-with-feather-fill 

Here is the code

{% unless product.url contains "products/gift-card" %}
<div class="mockup_container">
<h5>Would you like to see how this looks in your home prior to purchase? Purchase a mock-up, send us a photo of your space to sales@misslolo.co.nz, and we will create a digital impression. Limit 2 per customer.</h5>

<input id="mockup_btn" class="mockup_btn" type="button" name="" value="Yes, I want a Mockup" data-PTitle='{{product.title}}'>
</div>
{% endunless %}

<form action="/cart/add" id="addtocartform" method="post" enctype="multipart/form-data" class="product-form product-form-{{ section.id }}{% unless section.settings.show_variant_labels %} product-form--hide-variant-labels{% endunless %}" data-section="{{ section.id }}">
{% include 'skt_gc_lineitems' %}
<div class="skt_gc_button_container"></div><div class="skt_gc_preview_button_container"></div>

{% unless product.options.size == 1 and product.variants[0].title == 'Default Title' %}
{% for option in product.options_with_values %}
<div class="selector-wrapper js product-form__item">
<label {% if option.name == 'default' %}class="label--hidden" {% endif %}for="SingleOptionSelector-{{ forloop.index0 }}">
{{ option.name }}
</label>
<select class="single-option-selector single-option-selector-{{ section.id }} product-form__input" id="SingleOptionSelector-{{ forloop.index0 }}" data-index="option{{ forloop.index }}">
{% for value in option.values %}
<option value="{{ value | escape }}"{% if option.selected_value == value %} selected="selected"{% endif %}>{{ value }}</option>
{% endfor %}
</select>

</div>
{% endfor %}

Any help would be much appreciated.

Andy 

0 Likes