Open mattbrailsford opened 4 years ago
Few links and notes on this.
Format info can be found here: https://support.google.com/merchants/answer/160567?hl=en-GB Schema info can be found here: https://support.google.com/merchants/answer/7052112?hl=en-GB
I'm not sure if it's explicitly required, but the docs say it should have a .XML file extension, so may need to document a rewrite rule such as:
<rewrite>
<rules>
<rule name="google-merchant-feed.xml rewrite" stopProcessing="true">
<match url="^google-merchant-feed.xml$" />
<action type="Rewrite" url="/google-merchant-feed/" appendQueryString="false" />
</rule>
</rules>
</rewrite>
As an alternative, if this needs more customizing than might be reasonable in a "starter kit" style add-on, this could just be a "how to guide" in the docs, similar to how core has the sitemap.xml docs https://our.umbraco.com/documentation/tutorials/Creating-an-XML-Site-Map/
I don't think this would be a core product feature, instead it would be an add-on package like Vendr.Checkout but it could be good to have a drop in package to auto create a Google product feed for their shopping API.
I think it would ultimately be a single template / doc type which would need to be told what doc types are considered "product nodes" and then it could auto generate the feed. There may be more config options required moving forward for less standard store structures, but a simple feed could be a nice starting point.