Setup external links on Prodcut Page

Highlighted
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
Highlighted
Shopify Expert
2932 499 674
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
Highlighted
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
2932 499 674

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
New Member
2 0 0

Hi, Where should I add your Code to Redirect my visitors if they click on Add To Cart Button


{% if section_onboarding %}
<div class="product-single__add-to-cart default-product product-single__add-to-cart--full-width">
<button type="submit" name="add" id="AddToCart--{{ section.id }}" class="btn btn--buy btn--add-to-cart" disabled="disabled">
<span class="btn__text">
<span class="fas fa-clock"></span>
{{ 'products.product.sold_out' | t }}
</span>
</button>

0 Likes
Highlighted
Shopify Expert
2932 499 674

Thst code and step i have given above.

You have made different code. what you are getting in 'section_onboardin ' ?

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