Showing TAGS on product card (VENTURE THEME)

Hi there community, im having some troubleshooting with this.. i’ll put some picture to explain what i mean,

i want to show like this:

Plata de Ley 925

Piedras Semipreciosas

in that order, here is the code i used:

{% for tag in product.tags %}
           {%if tag contains "Plata" %}
             
              Plata de Ley 925        
           

           {% endif %}
           {%if tag contains "Baño de Oro 18K" %}
             
              Baño de Oro 18K / Plata de Ley 925               
           

           {% endif %}           
           {%if tag contains "Semipreciosas" %}   
             
              Piedras Semipreciosas        
           

           {% endif %}
         {% endfor %}

if something more it’s needed, please tell me, in advance, thanks anyway!!

id="product-item-subtitle_page_card"

Your id is not unique.

May affect your SEO.

@ChoosiZon thanks for that ! anyway im making some edits so..! if you can help me with my problem.. :slightly_smiling_face:

Pls show your url, without that difficult to troubleshoot and see your issue.

@ChoosiZon https://o3jr3ms8qeyqv8id-53196980409.shopifypreview.com

thanks a lot for your help!

Everything seems to be working fine.

Would you like to use a snipping tool to show what you want?

Free Snipping Tool

@ChoosiZon , yes but i want to change order position,

Plata de Ley 925

Piedras Semipreciosas

Thanks anyway

{% for tag in product.tags %}
         {%if tag contains "Baño de Oro 18K" %}
             

              Baño de Oro 18K / Plata de Ley 925               
           

           {% endif %}           
           {%if tag contains "Semipreciosas" %}   
             
              Piedras Semipreciosas        
           

           {% endif %}
          {%if tag contains "Plata" %}
             
              Plata de Ley 925        
           

           {% endif %}
         {% endfor %}

This way the order will be :

Baño de Oro 18K / Plata de Ley 925

Piedras Semipreciosas

Plata de Ley 925

@ChoosiZon i think we are not in the same way.. let’s me explain what i mean..

if i choose “Plata de Ley 925” and “Piedras Semipreciosas”,

the order should be :

  • Plata de Ley 925

  • Piedras Semipreciosas

At the moment it still showing the same order with your code, sir!

I got what you mean. The default tags output is in alphabetical order and can’t be changed.

However we can try this. (not tested)

{% for tag in product.tags %}   
          {%if tag contains "Plata" %}
             
              Plata de Ley 925        
           

           {% endif %}
         {% endfor %}
{% for tag in product.tags %}
         {%if tag contains "Baño de Oro 18K" %}
             
              Baño de Oro 18K / Plata de Ley 925               
           

           {% endif %}    
{% endfor %}    
{% for tag in product.tags %}   
           {%if tag contains "Semipreciosas" %}   
             
              Piedras Semipreciosas        
           

           {% endif %}
{% endfor %}

EDITED**

@ChoosiZon yes i understand, anyway im playing with operators, and i think im on the way.. thanks a lot sir!

** EDITED: thanks @ChoosiZon your code works really well right now! i made some changes on products.collection, and that’s it! thanks you!