Last active
August 1, 2022 17:06
-
-
Save javimata/03f58ba004be1f0989a2c0bd772930af to your computer and use it in GitHub Desktop.
Agrega Guía de tallas & Texto en Productos de Shopify
This file contains 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 section.settings.richtext_product %} | |
<div class="product__policies"> | |
{{ section.settings.richtext_product }} | |
</div> | |
{% endif %} | |
{% if section.settings.tags_tallas != blank %} | |
{% for tag in product.tags %} | |
{% if tag contains section.settings.tags_tallas %} | |
{% if section.settings.image_tallas %} | |
<a href="{{ section.settings.image_tallas | img_url: "master" }}" data-fancybox class="btn btn--small">Ver Guía de tallas</a> | |
{% endif %} | |
{% endif %} | |
{% endfor %} | |
{% else %} | |
{% if section.settings.image_tallas %} | |
<a href="{{ section.settings.image_tallas | img_url: "master" }}" data-fancybox class="btn btn--small">Ver Guía de tallas</a> | |
{% endif %} | |
{% endif %} |
This file contains 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
{ | |
"type": "header", | |
"content": "Personaliza producto" | |
}, | |
{ | |
"type": "image_picker", | |
"id": "image_tallas", | |
"label": "Imagen de tallas" | |
}, | |
{ | |
"type": "text", | |
"id": "tags_tallas", | |
"label": "Tag de tallas" | |
}, | |
{ | |
"type": "richtext", | |
"id": "richtext_product", | |
"label": "Texto en producto" | |
} |
This file contains 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 request.page_type == "product" %} | |
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" /> | |
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment