OpenCart Google Feed XML Syntax Troubleshooting

These instructions are for OpenCart 1.4.9.1

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:
onetruegem.com/index.php?route=product/product&product_id=62

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

onetruegem.com/index.php?route=product/product & 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 http://www.w3schools.com/xml/xml_validator.asp and if no errors occur, upload to Google.