Product pages - Allow pre-orders for products

Highlighted
New Member
1 0 1

If I change the payment capture to "manual" - will that change the method for all my orders? I only want to do a pre-order for one item and don't want to have to manually input payments for all my other sales. 

1 Like
Highlighted
New Member
1 0 0

 I am using minimal and this part isn't there..

addToCart: {{ 'products.product.add_to_cart' | t | json }},

In fact this is the only code I have..

{% comment %}
The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}

{% section 'product-pre-order-template' %}
{% section 'product-recommendations' %}

 

(It's also not in the sections)

 

Anyone able to help please?

0 Likes
Highlighted
New Member
1 0 0

I followed the step by step instruction but i could not find the following script that need to look for in product.pre-order.liquid file.

 

addtocart {{ 'Pre-order' | json }},

My template is Canopy please can you help. 

0 Likes
Highlighted
Tourist
5 0 1

For anyone looking to find the "missing code" I finally found the answer.

 

You can usually find the script in theme.liquid - but you cannot use the same code listed here as it will change ALL buttons to pre-order. 

Instead replace it with the line:

addToCart: {%- if template.suffix == 'pre-order' -%}{{ 'Pre-order' | json }}{%- else -%}{{ 'products.product.add_to_cart' | t | json }}{%- endif -%}

 

1 Like
Highlighted
New Member
1 0 0

Hi, I'm not quite sure if this has been asked before, but is still still possible to do if my client is only using Shopify Lite?

0 Likes
Highlighted
New Member
6 0 0

The text and fine-print at the end of step 7 in Ty's instructions might help.

0 Likes
Highlighted
New Member
1 0 0

I am also having this issue, did you ever resolve it?

0 Likes
Highlighted
New Member
3 0 0

Hi There 

Thank you for you help , notes for pre -order , 

I have a problem from the begin , 

I have created a pre-order-templet  but there is no  add_to_cart  line at all  after  <script>  line there is nothing instead of lines for other Apps.

I will appreciate very much if you could help me as I donot like to add another app for pre order .

Thanks 

0 Likes
Highlighted
New Member
4 0 0

hi i searched through the file and i dont have this 

addToCart: {{ 'products.product.add_to_cart' | t | json }},

in there 

0 Likes
Highlighted
New Member
1 0 0

I have done all the steps for the debut theme, however when I click my pre-order product the product won't open. It says "Liquid error: Error in tag 'section' - 'product-pre-order-template' is not a valid section type".

 

Any ideas on where I made a mistake and how to fix it.

0 Likes