This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Replace the Add to Cart button with a link to an external website for products with tags containing do_not_sell_to_UK when the buyer's context is set to the United Kingdom. | |
{% endcomment %} | |
{% if product.tags contains "do_not_sell_to_UK" and localization.country.iso_code == 'GB' %} | |
<p><a href="https://example.com">Go to retailer website</a></p> | |
{% elsif product.selected_or_first_available_variant.available %} | |
{{ 'products.product.add_to_cart' | t }} | |
{% else %} | |
{{ 'products.product.sold_out' | t }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if localization.country.iso_code == 'FR' %} | |
// show custom content only meant for France | |
{% else %} | |
show generic content | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Hide products on collection pages that are tagged with do_not_sell_to_UK when the buyer's context is set to the United Kingdom. | |
{% endcomment %} | |
{% unless product.tags contains "do_not_sell_to_UK" and localization.country.iso_code == 'GB' %} | |
<li class="grid__item"> | |
{% render 'product-card', product_card_product: product, media_size: section.settings.image_ratio, show_secondary_image: section.settings.show_secondary_image, add_image_padding: section.settings.add_image_padding, show_vendor: section.settings.show_vendor, show_image_outline: section.settings.show_image_outline, show_rating: section.settings.show_rating %} | |
</li> | |
{% endunless %} |