Consultar productos

Highlighted
New Member
4 0 0
Hola, muy buenos días, espero me puedan colaborar con mi inquietud.

Quiero saber cómo puedo mostrar la imagen y la URL de un producto, dentro de la página de otro producto. Como puedo hacer esa consulta a Shopify si tengo el id del producto que quiero mostrar.

Más específicamente lo que quiero hacer es mostrar dentro de un producto, sus productos hermanos de otro color, pero son productos separados, no son variantes del mismo producto.

Espero haberme hecho entender y espero que me puedan ayudar.

Muchas gracias
0 Likes
Highlighted
Shopify Expert
3309 526 777

Hi @Judapi 

If you want to show other product in side product age then you need handle not product id.

Add product handle in product in which you want to show those product and get product by handle and show where you want to show it.

 

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
4 0 0

Ooooh thank you so much for replying.

 

In that case, how can I retrieve that product by handle? I have tried so many things but I am not really sure I am doing it the right way!

 

 

0 Likes
Highlighted
Shopify Expert
3309 526 777

You can take product information by this:

{% assign dynamic_product= all_products[handle_from_upcode] %}

Note: here change 'handle_from_upcode' to product handle that you want to show on pages. you can get  all information about product by this variable 'dynamic_product'

like {{dynamic_product.title}}

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