Help - Search - Members - Calendar
Full Version: Fix for Google Base Product ID Attribute Requirement?
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
jcb
On May 1st, Google Base began requiring an id attritute and won't accept feeds without it. There have been fixes posted here and at cubecart.org, but they don't work for me...possibly because I have the SEO mod installed. The fix posted on the .org site adds the id column, but doesn't fill in the product id's. If anyone could help I would sincerely appreciate it.

Thanks.
Mysty
Cubecart released v3.0.18 yesterday which includes a google base fix. You should install it.
jcb
Thanks for the reply, Mysty. There is no changelog posted with the upgrade, but it looks like the changes to admin/products/index.php are the same as what Brooky posted on the .org forum. I already made those changes, but it didn't work. I have the SEO mod installed and thought maybe that was why the fix didn't work. I responded to Brooky's post on the .org forum on May 27th, but haven't gotten a reply. It's difficult to install an upgrade to a heavily modded cart without a changelog.
WeirdGear Dave
I have the SEO mod installed and followed the fix mentioned above and had the same results. (i.e. extra column called 'id' with blank fields).

I added this bit of code onto the 'admin/products/index.php' page and got it working - do a back up of the page in case things go wrong for you yeahhh.gif
QUOTE
$results[$i]['productId']."\t".


Find
QUOTE
// SEO friendly mod
if($config['sef'] == 0) {
$googleBaseContent .= $results[$i]['productId']."\t".$glob['storeURL']."/index.php?act=viewProd&productId=".$results[$i]['productId']."\t".$name."\t".$desc;
} else {
include_once("../../includes/sef_urls.inc.php");
$googleBaseContent .= $glob['storeURL']. "/" . sef_get_base_url(). generateProductUrl($results[$i]['productId'])."\t".$name."\t".$desc;
}


and replace with
QUOTE
// SEO friendly mod
if($config['sef'] == 0) {
$googleBaseContent .= $results[$i]['productId']."\t".$glob['storeURL']."/index.php?act=viewProd&productId=".$results[$i]['productId']."\t".$name."\t".$desc;
} else {
include_once("../../includes/sef_urls.inc.php");
$googleBaseContent .= $results[$i]['productId']."\t".$glob['storeURL']. "/" . sef_get_base_url(). generateProductUrl($results[$i]['productId'])."\t".$name."\t".$desc;
}
jcb
Thank you SO much, Dave!! Your fix worked like a charm! My Google feed went through with no problems!

tracie877
Any nice people out there who would perhaps do this 'fix' for me???

Would be great if there is smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.