Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi together,
I am currently building my online shop and I have to implement a age label which is a xml file.
But Shopify isn't supporting xml.
So I s there any solution to implement it?
Here is the code from the xml file?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- age classification (age-label.com) -->
<!-- label generator: age-label.com -->
<age-declaration>
<ageblock-basic>
<age-issuer>namewebsite.com</age-issuer>
<last-change>2023-10-17</last-change>
<country>de</country>
<label-version>1.0</label-version>
<revisit-after>1days</revisit-after>
</ageblock-basic>
<ageblock-labeltype>
<httpheader>false</httpheader>
<htmlmeta>false</htmlmeta>
<label-z>false</label-z>
<xmlfile>true</xmlfile>
<default-age>16</default-age>
</ageblock-labeltype>
<ageblock-labeltype-definition>
<labeltype-xmlfile>
<label class="website">
<age>16</age>
<min-age>0</min-age>
<default-age>16</default-age>
<scope>*.namewebsite.com</scope>
</label>
</labeltype-xmlfile>
</ageblock-labeltype-definition>
</age-declaration>
Anybody an idea how to implement ist?
Seems like in 8 billion people no one ever had to implement this
How much of your precious time have you guys spent on this? There are FREE apps that are better like this German one because XML doesn't work with an SaaS like Shopify - only HTML, CSS, and Liquid, especially for security reasons as FTP or XML can open back doors and vulnerabilities in the system.
If you don't want to anything else other than the XML file then you can convert the relevant parts of your XML file into HTML and Liquid. Use JavaScript to read and parse the XML file, then dynamically insert the relevant data into your Shopify pages. This approach would involve hosting your XML file on a server accessible by your Shopify site and writing JavaScript to fetch and process the XML data.
If the age label needs to be dynamically updated or integrated you need to build a custom app or using a third-party service that can process the XML file and provide the necessary data in a format readable by Shopify.
Like already explained to several other shopify admins I expect this topic to be taken care of by shopify not me. I'm not paying my monthly fees to be told "we don't know here's a suggestion". I can understand it when customers ask for fancy stuff to upgrade their shop but this matter is about laws for minors which is no joke especially in germany I don't know about other countries.
So in conclusion there already should be an easy way to fix this issue or at least some department that is responsible for stuff like that. Otherwise we will have to look into Shopify as a whole but I'll leave that for lawyers and the child protection authority.
Hi together, this topic can be closed, because I finally don't have to implement the xml.
Thanks but topics don't get closed in the community as other forum users may like to read this and learn from it too, or add further questions.
Would you mind sharing your solution then?
There is no solution. finally I got the information that I don't have to implement it.
Hey dude i am going to tell you a solution.
Just upload the xml file to the store from the content menu.
After that just create a redirect from a new XML URL (Online Store>Navigation>URL Redirects>Create URL Redirect).
This is 100% correct to simply serve a static XML file. (That said, it will of course only work for a static file, unless you also create some process to update it regularly.)
Thanks Васето!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025