How to resolve checkout issue on custom theme site?

I have a custom theme site that forces the shopper to sign into the site if allowed, they will be provided a budget to spend.

The problem I’m running into is at the “Proceed to checkout” page, I have two required fields that must be completed to checkout. If either one of them is skipped, the page locks and once the shopper completes the two required fields, the system will not correct itself and allow them to check out.

I’m stumped.

Thanks,

J

Here is the code:

{{ 'cart.general.title' | t }}

{%- if cart.item_count > 0 -%} {% for item in cart.items %} {%- if item.variant.compare_at_price > item.variant.price -%} {%- capture saving- %}{{ item.variant.compare_at_price | minus: item.variant.price }}{%- endcapture -%} {%- assign total_saving = saving | plus: total_saving -%} {%- endif -%} {% endfor %}
  {{ 'cart.label.product' | t }} {{ 'cart.label.price' | t }} {{ 'cart.label.quantity' | t }} {{ 'cart.label.total' | t }}  
{%- if item.image -%} {{image_0.alt | escape }} {%- endif -%} {%- if item.product.handle == 'gift-wrapping' %} {{ item.product.title }} {%- else -%} {% comment %}{% if item.properties.product %}{{ all_products[item.properties.product].title }} → {% endif %}{% endcomment %}{{ item.product.title }} {%- endif -%} {% unless item.variant.title contains 'Default' %}
{% for option in item.product.options %}
{{ option }}:

{{ item.variant.options[forloop.index0] }}

{% endfor %}
{% endunless %} {%- assign property_size = item.properties | size -%} {% if property_size > 0 %}
{% for p in item.properties %} {% unless p.last == blank %} {%- if p.first != '_bundle' and p.first != 'pid' -%} {{ p.first | capitalize }}: {% if p.last contains '/uploads/' %} {{ p.last | split: '/' | last | split: '_' | last }} {% else %} {{ p.last | split: '_' | last }} {% endif %} {%- endif -%} {% endunless %} {% endfor %}
{% endif %}
{{ item.price | money }} {% if item.original_line_price != item.line_price %}{{ item.original_line_price | money }}{% endif %}{{ item.line_price | money }} ×
{%- if settings.cart_clear_enable -%}{{ 'cart.general.clear_cart' | t }}{%- endif -%}
{% if settings.cart_notes_enable or settings.shipping_calculator == 'Enabled' %}
{% include 'gift-wrapping' %} {% if settings.cart_notes_enable %} * {{ 'cart.general.note' | t }}: Please Enter Event Name/Partner/Date And Any In Hands Date, Shipping Instructions, Etc Into The Field Below. {{ cart.note }}

NOTE: Any order that exceeds the allocated budget must obtain special permission before placing order. Please contact sample@sample.com for permission

{% endif %} {%- include 'shipping-calculator' -%}
{% endif %}

{{ 'cart.general.total_title' | t }}

{% comment %} ---data-title="{{ 'Account Balance Left:' | t }}" {% endcomment %}
{{ 'cart.general.subtotal' | t }} {{ cart.total_price | money }}
{{ 'cart.general.shipping' | t }}
Saving {{ total_saving | money }}
Budget
{{ 'cart.general.total_title' | t }} {{ cart.total_price | money }}
{%- if settings.use_threshold_page -%}{%- assign settings_free_shipping_above = settings.free_shipping_above_page -%}
{%- include 'shipping-threshold' -%}
{%- endif -%}
{%- if settings.cart_coupon_enable -%}
{{ 'cart.general.coupon' | t }}
{%- endif -%} {%- comment -%} {%- if settings.use_agree_checkbox -%} {%- assign page_url = pages[settings.link_conditions].url -%}

  {%- if settings.link_conditions != blank -%}{{ 'cart.general.link_conditions_html' | t: link:page_url }}{%- else -%}{{ 'cart.general.link_conditions_emty' | t }}{%- endif -%}

{%- endif -%} {%- endcomment -%} {%- if settings.explain_code -%}

{{ 'cart.general.explain_code' | t }}

{%- endif -%} {%- if settings.explain_curency -%}

{{ 'cart.general.explain_currency_html' | t:currency:shop.currency }}

{%- endif -%} {% if customer %} .auto-style1 { text-align: right; } .auto-style2 { color: #FF0000; }

*What type of event/request is this for?

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“TSD Event”{% if cart.attributes[“What type of event/request is this for?”] == “TSD Event” %} checked{% endif %}> TSD Event

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“Industry Tradeshow”{% if cart.attributes[“What type of event/request is this for?”] == “Industry Tradeshow” %} checked{% endif %}> Industry Tradeshow

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“Regional Partner Event”{% if cart.attributes[“What type of event/request is this for?”] == “Regional Partner Event” %} checked{% endif %}> Regional Partner Event

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“Partner Appreciation/Executive”{% if cart.attributes[“What type of event/request is this for?”] == “Partner Appreciation/Executive” %} checked{% endif %}> Partner Appreciation/Executive

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“Distribution/VAR Event”{% if cart.attributes[“What type of event/request is this for?”] == “Distribution/VAR Event” %} checked{% endif %}> Distribution/VAR Event

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“New Employee/Work Use”{% if cart.attributes[“What type of event/request is this for?”] == “New Employee/Work Use” %} checked{% endif %}> New Employee/Work Use

<input required class=“required” type=“radio” name=“attributes[What type of event/request is this for?]” value=“Internal Recognition”{% if cart.attributes[“What type of event/request is this for?”] == “Internal Recognition” %} checked{% endif %}> Internal Recognition

{%- if settings.use_agree_checkbox -%} {%- assign page_url = pages[settings.link_conditions].url -%}

  {%- if settings.link_conditions != blank -%}{{ 'cart.general.link_conditions_html' | t: link:page_url }}{%- else -%}{{ 'cart.general.link_conditions_emty' | t }}{%- endif -%}

{%- endif -%}
{%- if settings.show_cart_trust_seal_page and settings.cart_img_trust_seal_page != blank -%}
{%- assign image = settings.cart_img_trust_seal_page -%}

{{image.alt}}
{%- endif -%} {% comment %} --tim: added inside if and warning below {% endcomment %} {{ 'cart.general.proceed_checkout' | t }} {% if settings.monitor_rewardify %}

{{ settings.monitor_warning }}

{% endif %} {% if settings.use_additional_checkout_buttons and additional_checkout_buttons and settings.monitor_rewardify == false %}
{{ content_for_additional_checkout_buttons }}
{% endif %}
{% else %} You are not logged in. Please log in to continue to checkout. {% endif %}

{%- else -%}

{{ 'cart.general.empty' | t }}

{{ 'cart.general.guest_note_html' | t }}

{{ 'cart.general.continue_shopping' | t }}

{%- endif -%}
{%- comment -%}{%- if settings.show_cart_related_products and settings.related_products_enable == "by_collection" -%} {%- include 'related-cart-products' -%} {%- elsif settings.show_cart_related_products and settings.related_products_enable == "by_tags" -%} {%- include 'related-cart-products-by-tags' -%} {%- endif -%}{%- endcomment -%}