Hi there!
I’m trying to add a pre-order option in the prestige theme. I check some threads on the topic but nothing seems to work for Prestige.
I found this bit of code on the Snippet product-form, which I think it’s the key to make this work:
{%- endcomment -%}
<button type=“submit” class=“ProductForm__AddToCart Button {% if selected_variant.available and section.settings.show_payment_button == false %}Button–primary{% else %}Button–secondary{% endif %} Button–full” {% if selected_variant.available %}data-action=“add-to-cart”{% else %}disabled=“disabled”{% endif %}>
{%- if selected_variant.available -%}
{% if product.template_suffix == ‘pre-order’ %}{{ ‘product.form.pre_order’ | t }}{% else %}{{ ‘product.form.add_to_cart’ | t }}{% endif %}
{{ selected_variant.price | money_without_trailing_zeros }}
{%- else -%}
{{- ‘product.form.sold_out’ | t -}}
{%- endif -%}
{%- if section.settings.show_payment_button and product.template_suffix != ‘pre-order’ -%}
{{ form | payment_button }}
{%- endif -%}
{%- endform -%}
I don’t have a pre-order snippet, so I believe that might be the key to make this work and change {{- ‘product.form.sold_out’ | t -}} to {{- ‘product.form.pre_order’ | t -}}.
I tried but nothing seems to work. So I would like to know if there’s anyone that knows how to fix this.
Thank you in advance!
