I am currently trying to figure out the easiest way to upload my products to google product search. I'm not exactly sure how to create the proper data feed type that will work with alegrocart. Currently I've created the text (spreadsheet) and although that works just fine, I would prefer to have a rss type feed setup to automatically update my products rather than manually add them.
I recently tried to create a rss feed that is a copy of alegrocart's rss.php file with modifications to the attributes that google requires (I renamed this file googlebasefeed.php). This did not appear to work and after re-reading googles instructions ( http://base.google.com/support/bin/answ ... 9461&hl=en ) I realized I may need to save the file as .xml and include the "Google Base Namespace Declaration" and will try this once my server is back up.
Google Base Namespace Declaration
Code: Select all
xmlns:g="http://base.google.com/ns/1.0"
Code: Select all
<g:id><?php echo $result['product_id']; ?></g:id>
<title><?php echo $product['name']; ?></title>
<description><?php echo $product['desc']; ?></description>
<link><?php echo $product['url']; ?></link>
<g:price><?php echo $product['price']; ?></g:price>
<g:condition>new</g:condition>
<g:image_link><?php echo $product['image']; ?></g:image_link>
<g:quantity><?php echo $result['quantity']; ?></g:quantity>
<g:availability>in stock<g:availability>
<g:online_only>y</g:online_only>