Post by wackmofo » Sat Aug 25, 2012 2:42 pm

Hi,

I have a minor problem. I have a modified Google Base feed and it is showing the stock quantity (for example for Apples it shows number 6 and not "In stock" or "Out of Stock"). On my website it shows "In stock" and "Out of stock".

I don't want to show the actual quantity in my google base feed, but only the stock status. How can i change that? Now i have this line:

$output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>';

New member

Posts

Joined
Sun Jun 17, 2012 11:35 pm

Post by uksitebuilder » Sat Aug 25, 2012 5:58 pm

$output .= '<g:quantity>' . ($product['quantity']>0?'In stock':'Out of stock') . '</g:quantity>';

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by wackmofo » Sun Aug 26, 2012 2:37 am

Thanks, I will try it out.

I have one more question - how do I manually generate the feed. And how do I configure the automatic generation of the feed weekly or daily? I don't find any scheduler. Is it possible to run it with cron? Which command?

New member

Posts

Joined
Sun Jun 17, 2012 11:35 pm

Post by uksitebuilder » Mon Aug 27, 2012 1:37 am

After you set-up the feed in Google Merchant, you will see a schedule link

As the feed is dynamic, it is created when called by Google

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 2 guests