Hello, I am doing tests for which I will paste a referential code. The idea is that I want to use the labels of a product. In this case I open the product page and then I want to use the labels in a popup window that shopify gives me and that is referenced to a page. In this page I put the html and the script to load the labels that the main page has. But it is not giving me data. I don’t know if my code is wrong. Could you help me?. Thank you.
Page ref : https://thn.pe/products/zapatillas-adidas-hombre-ig7596-forum-low
I want to use the tags in : " Guia de tallas"
Etiquetas de producto
Etiquetas del producto:
@AdolfoCV , I don’t get your point. Could you please explain in brief?
I can help you with this. What I understand up to now is, you want to display a popup when someone lands on the page with some URL parameter. correct me if I am wrong.
The code you provided seems to be correct for retrieving the tags of a product and displaying them in a table on a separate page. However, there are a few things you should check to ensure that it works properly:
-
Make sure the script code is properly inserted on the page where you want to display the tags. You can add the code to an HTML file or within a script tag in the page’s HTML code.
-
Ensure that the Shopify App JavaScript library (app.js
) is loaded correctly. The script source [https://cdn.shopify.com/s/assets/external/app.js](https://cdn.shopify.com/s/assets/external/app.js)
should be accessible and properly included in the page.
-
Verify that the URL of the product page you are testing ([https://thn.pe/products/zapatillas-adidas-hombre-ig7596-forum-low](https://thn.pe/products/zapatillas-adidas-hombre-ig7596-forum-low)
) is correct and the product handle extraction (var productHandle = parentURL.split("/").pop();
) is working as expected.
Hello. Thank you for your support.
I need to obtain the tag of my product to later use these as filters and show the data table that will be generated in html, in the shopify page section. And then these tables will be displayed in a popup on my product page.
That’s why I put an example code. What is the one that I am putting in the page section of shopify as html code. But I’m not getting response. I don’t know if there is any other way. Easy to use using the TAG