{"id":509,"date":"2012-01-24T12:04:02","date_gmt":"2012-01-24T12:04:02","guid":{"rendered":"http:\/\/www.sitekickr.com\/blog\/?p=509"},"modified":"2012-01-24T12:04:22","modified_gmt":"2012-01-24T12:04:22","slug":"wp-e-commerce-google-product-feed-errors","status":"publish","type":"post","link":"https:\/\/www.sitekickr.com\/blog\/wp-e-commerce-google-product-feed-errors\/","title":{"rendered":"WP E-Commerce Google Product Feed errors"},"content":{"rendered":"<p>WP E-Commerce is full-featured enough that it provides us with a Google Product feed &quot;out of the box&quot;. But, at no fault of the WP E-Commerce developers, the feed found in older versions of the product no longer fulfills Google&#39;s requirements.<\/p>\n<p>Namely, we&#39;re missing the unique product identifier.<\/p>\n<p>If you&#39;re somewhat savvy with a code editor, you can modify the source of this file to include the information we need:<\/p>\n<p><tt>\/plugins\/wp-e-commerce\/wpsc-includes\/productfeed.php<\/tt><\/p>\n<p>Keep track of your changes &#8211; if you upgrade WP E-Commerce you may need to apply them again.<\/p>\n<p>Around line 174, insert the following, which will satisfy Google&#39;s unique product identifier requirement:<\/p>\n<p><code>$output .= &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;g:mpn&gt;&quot; . $product_meta[&#39;_wpsc_sku&#39;][0] . &quot;&lt;\/g:mpn&gt;\\n\\r&quot;;<\/code><\/p>\n<p>Obviously, this will only work if you have actually specified a SKU for all of your products.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WP E-Commerce is full-featured enough that it provides us with a Google Product feed &quot;out of the box&quot;. But, at no fault of the WP&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"amp_status":""},"categories":[16,19],"tags":[135],"_links":{"self":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/509"}],"collection":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":2,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/509\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/categories?post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/tags?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}