Hi Shopify Community!
I would like to make it so North American companies can use the ‘Add to Cart’ button, UK and Germany go to their respective distribution websites (with the ability to add other regions as our distribution network grows), and everywhere else is directed to reach out to us directly for a quote.
I know there is the Dawn theme that seems to fit what I need, but since I already have a theme I am not sure how to implement this.
This is the only bit of code I can find that is related to the button.
{%- if enable_dynamic_buttons -%}
{%- liquid
assign default_text = ‘products.product.add_to_cart’ | t
assign button_text = ‘products.product.add_to_cart’ | t
if template == ‘product.preorder’
assign default_text = ‘products.product.preorder’ | t
assign button_text = ‘products.product.preorder’ | t
endif
unless current_variant.available
assign button_text = ‘products.product.sold_out’ | t
endunless
-%}
<button
{% if product.empty? %}type=“button”{% else %}type=“submit”{% endif %}
name=“add”
id=“AddToCart-{{ section_id }}”
class=“btn btn–full add-to-cart{% if enable_dynamic_buttons and product.selling_plan_groups == empty %} btn–secondary{% endif %}”
{% unless current_variant.available %} disabled=“disabled”{% endunless %}>
{{ button_text }}
{%- if enable_dynamic_buttons -%}
{{ form | payment_button }}
{%- endif -%}
{%- if enable_dynamic_buttons -%}
I appreciate any help or ideas to get this working!