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 }}
{% 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 %}
| {{ 'cart.label.product' | t }} | {{ 'cart.label.quantity' | t }} | {{ 'cart.label.price' | t }} | {{ 'cart.label.total' | t }} | ||
|---|---|---|---|---|---|
|
|
{% unless item.variant.title contains 'Default' %}
{% for option in item.product.options %}
{{ option }}: {{ item.variant.options[forloop.index0] }}
{% endunless %}
{% endfor %} {% comment %} Line item properties come in as having two parts. The first part will be passed with the default form, For more info on line item properties, visit:
{% for p in item.properties %}
{% unless p.last == blank %}
{{ p.first }}:
{% endif %}
{% comment %} |
{{ 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.line_price | money }}
{% for discount in item.discounts %} {{ discount.title }}
{% endfor %}
|
{{ ‘cart.general.subtotal’ | t }}
{{ cart.total_price | money }}
{{ 'cart.general.cart_expire_text' | t }}
{% endif %}
{% if additional_checkout_buttons %}
{{ 'cart.general.currency_info_text1' | t: shop_name: shop.name, shop_currency: shop.currency }} , {{ 'cart.general.currency_info_text2' | t: shop_currency: shop.currency }}
{{ '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 %}{{ 'cart.general.title' | t }}
{{ 'cart.general.empty' | t }}
{{ 'cart.general.cookies_required' | t }}
{% 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 %}
