Google Merchant XML Product Feed

Fahlgren Mortine asked on January 11, 2017 20:11

I'm currently implementing a product-based site. While it will not be an e-commerce site, it will use some e-commerce features in the product page type. In order to supply product data to associated third-parties, I need a product XML feed in the Google Merchant XML format (https://support.google.com/merchants/answer/7052112?hl=en&visit_id=0-636197585213467652-4250614572&rd=1). Is there an existing module that does this ala the Google XML sitemap? What would you recommend as the best approach for this? Thanks!

Kentico 10, ASPX + Portal

Recent Answers


Trevor Fayas answered on January 11, 2017 20:33 (last edited on January 11, 2017 20:34)

I have a tool for that.

Check the marketplace for the Webpart to API Converter it converts any webpart into an API feed.

Then just create a page, add a Repeater/Repeater with Custom Query that renders your product data in the format you linked to (xml), and then add the WebPart To API Converter, point it at your repeater and set the REsponse to text/xml

Vuala, instant XML feed.

0 votesVote for this answer Mark as a Correct answer

Fahlgren Mortine answered on January 11, 2017 20:42

Thank you for the link, Trevor. I'll pull this down and take a look. To note though, the site is built via ASPX templates. Can your tool still be leveraged? If not, I can look into creating a webpart for the product repeater.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on January 11, 2017 20:57

Google consumes feeds in different formats, here is rss 2 example. Follow the google specs to put the right columns.

I've recently created rss 2 feed with standard Kentico "Query RSS Feed" web part. Create your query, create transformation and you are good to go.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 11, 2017 22:47

Any webpart is an ascx control so yes, you should be able to use the controls in an ASPX template, just you'll have to manually plug in your values to configure it instead of using the nice Portal interface.

You listed ASPX+Portal, so you should be able to add your webpart zones though, right?

0 votesVote for this answer Mark as a Correct answer

Fahlgren Mortine answered on January 11, 2017 22:52

Trevor: Yes, I'm using ASPX + Portal, but most of the page functionality will be baked into a given ASPX template rather than created via webparts. The products template (while not created yet) will likely container a repeater with references to a transformation, with no webparts used directly.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 11, 2017 23:52

Well like i said, you can manually call the controls into your template.

Although i'll tell ya, i haven't ever been limited by going pure Portal method, but i have with ASPX+Portal. I would always encourage you to look into doing things through Portal as it gives a lot of flexibility, if you need to do logic during the various Page Cycle events you still can through a custom control.

Good luck to ya! Ask if you have any questions on the webpart to api, i have more info on my devtrev.com site.

0 votesVote for this answer Mark as a Correct answer

Fahlgren Mortine answered on January 12, 2017 00:14

Trevor: Actually, the lack of flexibility is sometimes a benefit, as the flip-side of that is simplicity in usage, which is particularly good for very non-technical site administrators. That said, I'm not opposed to Portal, it's just not what our team has historically used. Thanks again for your help! I really appreciate the quick responses I always get from Kentico developers.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.