I’m on the final edits of a site and I’ve stumped myself a little in trying to make the build as easy for my clients as possible. We’d like to deliberately set a few things up as sold out so the use has to enquire about the item and cannot directly add it to cart.
How does one set up the ‘sold out’ button to say ‘enquire now’ (I’ve got that part down) but then lead users to the contact page?
Is there a way to for these items - without editing the stock numbers so they have that on the back end - to remove the ‘buy buttons’ or does this solution cancel out the ‘add to cart’ and buy buttons?
My solution doesnot require stock numbers to add Enquire Now buttons. It will auto add Enquire Now button if the product has a tag “enquire-now”. Have tried updating the file?
Glad to hear that worked. However, I noticed that you have added “.myshopify.com” url as enquery_now_url . Do update it with your real domain once you get an active domain.
Also, one quick suggestion, the white font color on the pink background doesnot pass the contrast ratio. Try updating it to a darker color[maybe #708090] for better visibility.
Hi @theycallmemakka thanks for your work on this. I have followed your steps but I am encountering the problem where the the “Enquire Now” button does not redirect to the contact page.
<pickup-availability
class=“product__pickup-availabilities no-js-hidden quick-add-hidden”
{% if product.selected_or_first_available_variant.available and pick_up_availabilities.size > 0 %}
available
{% endif %}
data-root-url=“{{ routes.root_url }}”
data-variant-id=“{{ product.selected_or_first_available_variant.id }}”
data-has-only-default-variant=“{{ product.has_only_default_variant }}”
data-product-page-color-scheme=“gradient color-{{ section.settings.color_scheme }}”
{% render 'icon-unavailable' %}
{{ 'products.product.pickup_availability.unavailable' | t }}
{{ 'products.product.pickup_availability.refresh' | t }}
{%- endif -%}
I would also be grateful if you could guide me on how i can “grab” the product information and “attach” it to the contact form so as it is known which product the customer is enquiring about.