How can I implement an XML file in an online store platform?

GurneyBrolin
Tourist
6 0 2

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>

 

 

 

 

Replies 9 (9)

GurneyBrolin
Tourist
6 0 2

Anybody an idea how to implement ist? 

Chris264
New Member
9 0 0

Seems like in 8 billion people no one ever had to implement this

 

Ben310
Navigator
439 64 118

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.

Chris264
New Member
9 0 0

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.

GurneyBrolin
Tourist
6 0 2

Hi together, this topic can be closed, because I finally don't have to implement the xml. 

Ben310
Navigator
439 64 118

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.

Chris264
New Member
9 0 0

Would you mind sharing your solution then?

GurneyBrolin
Tourist
6 0 2

There is no solution. finally I got the information that I don't have to implement it.

vaseto
Shopify Partner
1 0 0

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).



Васето