Will look forward to seeing what you come up with but a profile will still need to run the export wouldn’t it and schedule that? Also, wouldn’t the url’s still be a problem? Sorry if I just need to be patient and wait to see what it is you come up with but in the mean time, to do all this in Magento the following would probably need to be done…
The coding part is beyond my capabilities but perhaps the solution is to first add attributes to the products in the Admin section (e.g. link and image_link) and then add some code to the section that saves the product, which writes the {{unsecure_base_url}} plus the url_path to the link attribute and the {{unsecure_base_url}} and thumbnail to the image_link attribute. (The skin url should not be needed, e.g. “www.example.com/productid.html” is sufficient). Then, when exporting, just map the link attribute and image_link attribute and you have a Google Base tsv file which can then be picked up by Google Base Scheduler after running it.
It would be good to hear from any of the Magento developers on this.
Well, it has nothing to do with dataflow, profiles, or the export function. It’s a RSS datafeed, not a export profile using dataflow.
Actually, it’s sorta done. Just tested it out on Google Base and it was a success. I had to modify the RSS feed to generate a Google Base compatible feed. Too many hacks and too many customization. Due to the nature of Google Base, I don’t think my solution would work for everyone.
Actually, it’s sorta done. Just tested it out on Google Base and it was a success. I had to modify the RSS feed to generate a Google Base compatible feed. Too many hacks and too many customization. Due to the nature of Google Base, I don’t think my solution would work for everyone.
Well, at least it works.
Well done hyteckit, could you give us a pointer on what you did or post the updated files for us to crawl through to get a next level of RSS for Google Base?
Well, it has nothing to do with dataflow, profiles, or the export function. It’s a RSS datafeed, not a export profile using dataflow.
Actually, it’s sorta done. Just tested it out on Google Base and it was a success. I had to modify the RSS feed to generate a Google Base compatible feed. Too many hacks and too many customization. Due to the nature of Google Base, I don’t think my solution would work for everyone.
Well, at least it works.
It would be great if you could share how you have managed to get your products into google base.
I just created a new Class overloading the function createRssXml. I also created a new Google Base Interface Builder for Zend_Feed.
In that function createRssXml, I call the function Zend_Feed::importBuilder to import my data using the new Google Base Interface Builder which basically formats the RSS feed for Google Base.
I just created a new Class overloading the function createRssXml. I also created a new Google Base Interface Builder for Zend_Feed.
In that function createRssXml, I call the function Zend_Feed::importBuilder to import my data using the new Google Base Interface Builder which basically formats the RSS feed for Google Base.
Hi,
Thanks for your help, I have to admit I am not a programmer and hence do not have that *great* a grasp of how magento works. I have looked at your link and can understand what they are trying to say/do.
Then I went to app/code/core/Mage/Rss/Block/Catalog/Category.php which is the file that creates the RSS feed. I am guessing the google base rss feed is based on that. So, I will have to work on it to see if I can get a feed to comply with Google Base guidelines.
Also I was wondering, isn’t the code going to be same for everyone? So would you be willing to share your code and may be write a wiki on how we will all be able to import our products into Google Base....
It would be great if you could put together something for the rest of us…
I guess if all you sell are simple products and only want to upload the required information to GoogleBase, I guess it would work.
The basic required fields are: id, title, description, price, link, and image_link.
Even with those basic fields, you still have some issues. I’m still working on them because I had products that didn’t show in my feed because some products have attributes other products didn’t have, like color.
What description do you want to use? Short description or the long description?
Which image do you want to use? The default image? The thumbnail? The small image? A custom image with watermark?
What price do you want to show? The special price? The regular price? The catalog rule price? The cheapest price in the tier pricing?
What about all those configurable products? Bundles? What about all those attributes such as color, weight, dimensions, and so forth?
Once I’m done with mine, I might post it to Magento Connect.
How do you install this? It doesn’t work. How do you do this? Hey hyteckit, can you create a 4 page wiki on how to get this thing installed and working.
I say no thanks.
Wait till it’s done and when I make it available on Magento Connect.
I needed a quick fix for a google base feed too, but ran into the same problem with link and image_link fields not having the full urls when exported with the DataFlow module.
As a temporary workaround I’ve put together the following script:
It just outputs all the products that are enabled and have visibility set to ‘Catalog, Search’ using a tab-seperated syntax that Google Base will import with their schedular.
Just place it in your Magento root folder (after customising it for your site!) and then call it from a web browser or just give Google Base the url.
As you can probably tell, this script only outputs the bare minimum needed for Google Base feeds, but it’s fairly easy to customise. Hope it helps someone!
I’ve just updated it so that it also pulls out the brand (bit trickier as it’s not stored as core product data). If you have any familiarity with PHP it should be quite simple to expand for other data as well:
Also, a quick word of caution: if you have a very large database of products it may be necessary to use cron to save the output of the script ready for google’s schedular to pick it up in case google times out waiting for the script to complete.
Am I right in thinking all you have to do is copy the code you have posted, but it in a file under the root server and when you call it using a web browser you should get a CSV file. (obviously after changing domain name to my domain)
if so its not working for me :(
the file is here http://www.crickethaven.co.uk/shop/googlebase.php