Why isn't my pre-order tutorial working on Shopify District theme?

Hi,

I’m new to Shopify with little coding background. I tried to follow this basic tutorial to add a pre-order option (https://community.shopify.com/post/625914) but the prompts did not work. Specifically, I could not find this code in any file:

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

much less be able to replace it.

I’m using the theme District, so I don’t know if this code is theme-specific or just doesn’t work for me.

My “product.pre-order.liquid” file contains this code:

{% 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’ %}

Can someone help me troubleshoot this issue? I’d rather not use an app for pre-ordering. Thank you for your time.

Irfana

Hello,

I’m not familiar with this theme, but it appears that you may already have a template for pre-orders.
https://help.stylehatch.com/article/270-district-changelog

Hi,

You can add a pre-order button without an app or external library. It works with multiple variants too. Check the video for more information.

made4Uo_0-1650422705226.gif