
By rs7272 on
I've searched all over the place and either it's not out there or I missed it. Hopefully I missed it...
Anyway, I have my UberCart store all set up and running great, and now I want to start publishing to shopping feeds. Is there a module that will easily export my products to google base and/or any of the other shopping feed sites?
Thanks in advance and sorry if the answer is obvious and I missed it...
Comments
Shopping feeds
Hi rs7272 -
There is a google base module; you can find it here: http://drupal.org/project/googlebase and another version here: http://www.ubercart.org/contrib/11593
They are not very usable at this point (no offense to the contributors! I'd love to see one of these fleshed out and built up.)
What I've done is used the views bonus pack (http://drupal.org/project/views_bonus) to export my feeds in various formats. The CSV export does a fairly good job, but the RSS and XML don't allow me to insert the namespace declarations needed to produce good feeds at this time (and I'm sure some of the problem is my own lack of expertise in code and theming).
So far I've successfully submitted feeds to Pricegrabber, Nextag, and Google Base. I'm working on Shopping and Shopzilla.
The main issue I've had is that the description field, which is usually mapped from the body of the product node, is full of things that aren't good for the feed, like commas, character-encodings, html tags (which can be stripped) and more. So the file sometimes fails, and for a few of these feeds, I've just had to use the title as description until I find a solution.
I'd be happy to show you how I've structured things, and if you have any ideas for some of the problems I'm facing, I'm all ears.
Read my post using views and
Read my post using views and views_bonus.
http://www.dzieyzone.com/content/06-07-2010/publish-ubercart-product-goo...
custom fields
dzieyzone , nice work (not tried yet) but how do you customize the fields for made in, isbn, and product type?
Variables not displaying
I've tried this but it doesn't seem to load any variables into the feed, possibly to do with views 3.
any helpd would be appreciated.
Cheers Dan
Sorted
I needed the nid as a field in the view.
Great Post
Thanks Dan
@scarr Do you mind sharing
@scarr Do you mind sharing how you setup views bonus pack to export your feed into usable data for Google Base? I am assuming that there is some editing to the file that is exported as well before submitting to Google? I'd be more than willing to try to help you figure out your issues (if you haven't figured them out yet) once I have an idea of what's going on. It sounds like an issue that I may run into as well with our website.
Thanks!
feeds
Hi bocaj and everyone,
Sorry for the long time in between posts - work took me to other issues and then back to feeds. Good news is that I've figured it out, at least for the most part (we are still affecting some changes, and I'll post when I have them).
Because of the number of products on this particular site (+1400), I needed a solution which required no editing after exporting. I have google pulling the feed directly from the site (you can see it at http://www.unique-sports.com/exports/google.txt)
For google base, we created a view using the csv file type. I changed the file name to end in .txt and changed the comma delimiter with a tab (I tabbed in notepad++ and copy/pasted it into that field).
I arranged the fields based on what google merchant center fields I wanted to include. Remember to change the label to the header google is looking for.
At this point, everything was nearly fine, except the feed kept breaking. The issue was encoding, as paragraph tags from the body (as well as copyright symbols, etc.) broke the tab delimitation. To solve this, my developers created a custom php snippet (which we are finalizing; after we finish it up, I will post for everyone).
The feed uploaded successfully, except for a few products that we have in there as duplicates and need to clean up. Google is downloading the feed each night and we are showing well in google products and such.
I've thought about creating a longer version of this post, as a how-to to create great feeds - would that be useful?
Thanks
Steve
more details
"I've thought about creating a longer version of this post, as a how-to to create great feeds - would that be useful?"
yes please
BTW, the txt file is over 2mb in size. Is this normal?
feeds
Hi Sunward,
I'll work on a full write-up. In the meantime, I'll be happy to answer questions. As for the file size, that is unfortunately due to the fact that even when I set a character limit on the body/description, for some reason the feed seems to be pulling the entire thing. The client has written some pretty expansive descriptions, and that plus the thousands of products have created a pretty big file. I'm having my developer look at that to make sure nothing odd is happening (which it probably is, haha) but google seems not to have a problem.
One thing I would like, and I'm not sure how to accomplish, is for drupal to create this feed and place a real file on the server, rather than have it generate the file when it is called by google. That would prevent some speed issues when google pulls the feed (which I have set for 2am, so no big deal).
Thanks
A not so quick solution to
A not so quick solution to the download time could be to break your feeds into groups say 250 products , each and have one final feed group that holds more than 250. Then have google import one per hour or so. This would only work if google merchant accepts more than one feed. There could also be caching benefits to this. Also you could split feeds by taxonomy.
Google does allow more than
Google does allow more than one feed, though the other major comparison shopping feed companies do not - this will have to be addressed at some point, though it's probably not terribly pressing. I believe that the rebuilt xml sitemap module now stores a file on the server built after cron runs, though I'm not 100% on that - it's possible that we could convince views bonus pack to mirror this if its worth pursuing.
I wrote my own
Manufacturer was a taxonomy term based on different product types. And teh product types are hard coded, i will make it more dynamic and configurable over time. For those that can modify code and use it feel free, or help me make it configurable.
Thanks.