OpenCart Google Feed XML Syntax Troubleshooting

These instructions are for OpenCart

Some of you will run into problems when compiling an XML feed for Google. I require more specific attributes than what OpenCart's Google Base Feed offers and the link attribute always yielded problems. This will show you how to resolve them.

An OpenCart product URL will look like this:

The problem is highlighted. XML Validators see this section as a syntax error. Simply change the ampersand to & a m p ; & a m p ; product_id=50

Another (albeit longer) way of getting the correct URLs is enabling Google Base Feed and viewing the code of its RSS. It's much simpler to manually go through your links and replace the ampersand with what's above.

When you're done, paste the code in an XML Syntax Validator such as and if no errors occur, upload to Google.