Active 'Sold Out' button on Products Page - Vogue theme

Hello there,

Just wondering if it’s any way to link the ‘Sold out’ button on a product page to the contact us page?

Website: gve.co.uk

There are no products under this category at the moment.

I am comfortable editing the code, but I will need guidance.

Thanks in advance!

Hi @Gveandco ,

Yes, it is possible to link the ‘Sold Out’ button on the Product page to the Contact page. You will need to edit the code in the Code Editor of your site’s theme. Typically, the code responsible for the add to cart button on the Product page lives in the product-form.liquid file.

Once you find the code for the add to cart button, please paste it here and I can look at it for you and advise next steps.

1 Like

Hi @thooja ,

Thank you for your reply and for offering your help.

I cannot find the file you mentioned. There is one product.liquid file, and then other product files such as product-badge, product-details, product-gallery, product-list-item, product-option, product-options, product-pagination and product-rack.

What is the one that you need then?

:slightly_smiling_face:

Hi @thooja ,

Following my first message, I just came across the code you meant. Sorry it took me all this time!

I will paste the whole code:

{% assign has_variants = false %}
{% if product.available and product.has_only_default_variant == false %}
{% assign has_variants = true %}
{% endif %}

{% assign selected_variant_outofstock = false %}
{% if product.selected_or_first_available_variant.available == false %}
{% assign selected_variant_outofstock = true %}
{% endif %}

{% form 'product', product %}

{% if has_variants %}
{% for option in product.options %}
{% include ‘product-option’, current_option: option, selected_variant: variant %}
{% endfor %}
{% endif %}


{{ ‘products.product.select_options’ | t }}

{% if section.settings.show_spb %}
{{ form | payment_button }}
{% endif %}

{% endform %}

Can you help me?

Thanks in advance!

Hi @thooja ,

Would anyone help me with this, please?

Thanks in advance!