Shopify payment error at checkout -"Amount to pay must be greater than 0."

I am offering a pre-sale item that will not require upfront payment, but I want to capture all order details and keep track of stats. I am getting the following error when I test my checkout process.

I have added a third party payment vendor to hide payment options and that is working correctly.

I have added manual payment methods to accept pay in person or pay before shipping and that is also working, but when I attempt checkout it tells me that the amount to pay must be greater than 0.

I think I need to modify the code to allow for 0 balance but not sure.

I have attached a copy of the following code files for review:

  • product-template.liquid

Here is the Cart-template.liquid code because it would not attach*Thank you

{% if cart.item_count > 0 %}
{% if section.settings.cart_enable %}
{{ ‘jquery.countdownTimer_2hours.js’ | asset_url | script_tag }}

{% endif %}

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

{{ 'cart.general.checkout' | t }}
{% for item in cart.items %}

{% if item.variant.compare_at_price > item.variant.price and item.variant.price != ‘0’ %}
{% assign saving = item.variant.compare_at_price | minus: item.variant.price | times: item.quantity %}
{% assign was = item.variant.compare_at_price | times: item.quantity %}
{% assign total_saving = saving | plus: total_saving %}
{% assign total_saving_was = was | plus: total_saving_was %}
{% endif %}

{% endfor %}
{{ 'cart.label.product' | t }} {{ 'cart.label.quantity' | t }} {{ 'cart.label.price' | t }} {{ 'cart.label.total' | t }}
{{ item.title | escape }} {% unless item.variant.title contains 'Default' %}
{% for option in item.product.options %} {{ option }}: {{ item.variant.options[forloop.index0] }}
{% endfor %}
{% endunless %}

{% comment %}
Optional, loop through custom product line items if available

Line item properties come in as having two parts. The first part will be passed with the default form,
but p.last is the actual custom property and may be blank. If it is, don’t show it.

For more info on line item properties, visit:

{% for p in item.properties %} {% unless p.last == blank %} {{ p.first }}:

{% comment %}
Check if there was an uploaded file associated
{% endcomment %}
{% if p.last contains ‘/uploads/’ %}
{{ p.last | split: ‘/’ | last }}
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}

{% endif %}

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

{{ item.price | money }}

{% for discount in item.discounts %}

{{ discount.title }}
{% endfor %}
{{ 'cart.general.edit' | t }} {{ 'cart.general.cancel' | t }}
{{ 'cart.general.remove' | t }}
{{ item.price | money }}

{% for discount in item.discounts %}

{{ discount.title }}
{% endfor %}
{{ 'cart.general.edit' | t }} {{ 'cart.general.cancel' | t }}
{% if item.original_line_price != item.line_price %}
{{ item.original_line_price | money }}
{% endif %}
{{ item.line_price | money }}

{% for discount in item.discounts %}

{{ discount.title }}
{% endfor %}
{% if section.settings.cart_notes_enable %}
{{ 'cart.general.note' | t }} {{ cart.note }}
{% endif %}
{% if total_saving %} {% assign x = total_saving | plus: 0 %} {% assign y = x | plus: cart.total_price | plus: 0 %} {% assign sale = total_saving | times: 100.0 %} {% assign sale = sale | divided_by: y | round | append: '%' %} {% if section.settings.saved_price %}
{{ 'cart.general.yousave' | t }} {{ sale }} OFF
{% endif %} {% endif %}

{{ ‘cart.general.subtotal’ | t }}
{{ cart.total_price | money }}

{% if cart.total_discounts > 0 %}
{{ 'cart.general.savings' | t }} {{ cart.total_discounts | money }}
{% endif %}
{{ 'cart.general.shipping_at_checkout' | t }}
{% if section.settings.cart_enable %}

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

{% endif %}

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

{% if additional_checkout_buttons %}

{{ content_for_additional_checkout_buttons }}
{% endif %}

{{ 'cart.general.currency_info_text1' | t: shop_name: shop.name, shop_currency: shop.currency }} , {{ 'cart.general.currency_info_text2' | t: shop_currency: shop.currency }}

{% if section.settings.shopping_payment %}

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

{% unless section.settings.cart_left_image == blank %}

{% else %}

{% endunless %}

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

{% if section.settings.cart_right_image == blank %} {% else %} {% endif %}
{% endif %} {% else %}

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

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

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

{{ 'general.404.link' | t }}{% include 'icon-arrow-right' %}
{% endif %}
Clear All Items From Cart {% if cart.item_count > 0 %} {% if section.settings.cart_enable %}

.timer_box span.cart_time { color: {{ section.settings.cart_timer_color }} !important; }

{% endif %}
{% endif %}
{% schema %}
{
“name”: “Cart page”,
“settings”: [
{
“type”: “checkbox”,
“id”: “cart_notes_enable”,
“label”: “Enable cart notes”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “saved_price”,
“label”: “Enable Saved Percentage”,
“default”: true
},
{
“type”: “header”,
“content”: “Cart Page Timer”
},
{
“type”: “checkbox”,
“id”: “cart_enable”,
“label”: “Timer Enable”
},
{
“type”: “number”,
“id”: “cart_timer_minute”,
“label”: “Cart Timer Minute”,
“info”: “Example: 1500 second left = 25 minutes left”
},
{
“type”: “color”,
“id”: “cart_timer_color”,
“label”: “Cart Timer Color”
},
{
“type”: “header”,
“content”: “cart page images setting”
},
{
“type”: “checkbox”,
“id”: “shopping_payment”,
“label”: “Enable secure shopping and payment card images”,
“default”: true
},
{
“type”: “image_picker”,
“id”: “cart_left_image”,
“label”: “Left image”,
“info”: “Maximum logo dimensions are 500px wide by 100px high. The uploaded file will be resized to fit within those constraints.”
},
{
“type”: “image_picker”,
“id”: “cart_right_image”,
“label”: “Right image”,
“info”: “Maximum logo dimensions are 500px wide by 100px high. The uploaded file will be resized to fit within those constraints.”
}
]
}
{% endschema %}