AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => Topic started by: classicer on March 29, 2014, 06:29:50 AM

Title: Google Base required attribute availability missing
Post by: classicer on March 29, 2014, 06:29:50 AM
Hello,

Just installed Google Base extension and successfully uploaded all products via xml feed using Google Base extension purchased for AbanteCart Cart to my Google merchant account, however there is a missing required attribute error: "availability" for all products

All products are enabled and inventory counts are set to 100, enabling subtract stock does not have an effect. Promotional price does not get to Google base but only original which is ok for now..

Anyone has work around this?

Thanks!

Gnel
Title: Re: Google Base required attribute availability missing
Post by: classicer on March 29, 2014, 07:09:15 AM
Found how to fix this manually for some of you who need this to work while the extension gets an update

1. Save Google Base extension xml output in notepad

2. from notepad edit menu find </g:quantity> closing attribute definition and replace with </g:quantity><g:availability>in stock</g:availability> this will add an attribute definition "availability" and predefined value  "in stock" to all products.

3. save and upload your xml file to your Google Merchant account

Gnel 
 
Title: Re: Google Base required attribute availability missing
Post by: thedarksyde on February 13, 2015, 11:38:21 AM
Bump.  This is still an issue. 
Title: Re: Google Base required attribute availability missing
Post by: Basara on February 16, 2015, 12:57:47 AM
Bump.  This is still an issue. 

Hi. Please contact extension developer https://marketplace.abantecart.com/index.php?rt=product/product/comments&product_id=120
Title: Re: Google Base required attribute availability missing
Post by: dhigz on June 29, 2015, 08:26:38 PM
I know this thread is pretty old, but I have a simple solution.

Open the file /extensions/google_base/storefront/responses/extension/google_base.php

Toward the bottom of the "main" function before the line: $response .= '</item>'."\n";

Add a line: $response .= '<g:availability>in stock</g:availability>'."\n";

Title: Re: Google Base required attribute availability missing
Post by: london on October 14, 2015, 06:04:25 AM
Found how to fix this manually for some of you who need this to work while the extension gets an update

1. Save Google Base extension xml output in notepad

2. from notepad edit menu find </g:quantity> closing attribute definition and replace with </g:quantity><g:availability>in stock</g:availability> this will add an attribute definition "availability" and predefined value  "in stock" to all products.

3. save and upload your xml file to your Google Merchant account

Gnel


This fixed that problem but i still have more problems. Please advice me also in the xml it shows >mysite.com/OakCart/image/thumbnails/no_image-500x500.jpg
Title: Re: Google Base required attribute availability missing
Post by: london on October 14, 2015, 06:25:02 AM
Image error fixed in file just other errors now that are in the picture
Title: Re: Google Base required attribute availability missing
Post by: london on October 14, 2015, 06:40:07 AM
See image attached for errors