Setup external links on Prodcut Page

New Member
1 0 0
 

#1 I would like to change the name of Add to cart to Order Now on product page and #2 When someone click on order now, it will go to another page. So Someone click on order now and it will go to outlink and go to my given link

0 Likes
Shopify Expert
2220 376 466
Hi
Please follow this
1. Go to online store->theme->edit code
2. Section-> product-template.liquid->find add to cart button withing form and replace button to link like bellow
<a href="external_link" >order now</a>
Let me know if you cant
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
New Member
1 0 0

I would like to do this for some product pages, but not all. Is this possible?

0 Likes
Highlighted
Shopify Expert
2220 376 466

Yes you can do this by product tag.

Add tag in product (ie ext_pro)

Now Open Section->product-template.liquid file and add this condition on add to cart button:

 

{% assign check_item='false' %}
{% for tag in product.tags %}
     {% if tag  contains 'ext_pro' %}     
             {% assign check_item='true' %} 
     {% endif %}
  {% endfor %}

{% if check_item== 'true'%}
<a href="external_link">Add to cart</a>
{% else %}
//Your regular add to cart
{% endif %}

 

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes