Froogle Google
Has anyone an easy way to create a file for Froogle Google?
|
Froogle Export Filter
Here is the new export filter.
If you need help with it, I can do work on the side integrating it into your cart if you do not know how, but this should certainly get you started, as it's pretty much all done right here. This took me hours of work and going back and forth with froogle to get this exactly right, so if you have problems then I'd be happy to help, just go to my x-cart services page. /main/products_export.tpl Quote:
|
Wow, how cool. Do I replace main/export_products.tpl with this or add to it?
|
Replace
|
Thank you. I did it and I got this from Froogle:
"Thank you for submitting your feed to Froogle. We have reviewed your feed and need you to make the following changes to it. - Please remove all empty newlines from your file." Where the problem may be? |
What the heck is Froogle Google?
Could someone tell me what Froogle Google is and why I might want to use it?
Also, I'd suspect you just need to do a final search/replace for \n\n on the data you're sending to Froogel Google. Basically just replace any double newlines with single newlines to strip out the blank lines. Or do a search and replace for any lines that start and end with a newline. I could easily show you this in PHP, but I've never tried anything like it in SMARTY code. |
First of all, thanks so much for the Froogle export. We used it and all our products were on Froogle in 2 days.
The export does put a blank line between records. Just load the file into Excel and click Data>> Filter>> Autofilter. One of the choices is to show only blank lines. Highlight all the blank lines and delete. Resave the file and upload to Froogle. Randy |
Re: What the heck is Froogle Google?
Quote:
You can read about it here. http://froogle.google.com/froogle/about.html |
Great script - how can it be modified to remove the blank line?
|
I'm just waiting for a UK Google Froogle. Though good to get it tested on someone else for a change before they bring it here :D
|
I tried the script and it nearly works for me, I submitted to froogle but they say that the images point to the thumbnails rather than the full images :(
|
I used POSDepot Excel workaround to get rid of the lines in between but Google responded:
Please also remove the quotes which are currently surrounding the header and each product. I did that manually and then they responded: We are unable to process feeds that contain line breaks in the descriptions. Please remove any line breaks from your item descriptions; each product's information should take up exactly one line in the feed. For example, the product Partner - English<->English appears to have line breaks in either the description or name fields. Your feed contains some extra tabs. There should be only one tab separating each field from the next and there should not be any tabs after the last field on any given line. Please make sure there are no extra tabs in your feed. For example, the product Language Teacher - English <-> Czech Talking Dictionary with 128K Bilingual Business Organizer appears to have extra tab spaces. Have any of you gotten the code to work ? |
My main problem with using x-cart's product export for Froogle is that my store has multiple providers. X-cart only exports products for one provider from that providers page. I need a way to export all of the products in my store at the same time.
Wouldn't this whole proposal be easier if we just started from scratch with a new product_export.php. I am not much of a programer but I recall that PHP has very powerful text handeling and formating commands. But most importantly the SQL could be set up to export products from all providers. The new .php page could be called from the admin area. I doubt that I can remember enough php to do this but if sombody else did and wanted to share that would be cool :wink: ! Thanks, Chad www.davesphotoemporium.com |
We've already coded an export module for Froggle from x-cart data that does a clean data output.
We haven't released it for sale yet though. It's coming as part of a larger package. PM me if you are interested and I'll let you know when it's available. We'll also be offering customisable outputs as needed. |
I had to change the multiple providers manually in the PHP code. Works like a charm. And, uh, hope you did your module from scratch ;) That wouldn't be cool since what I have posted here works just fine, especially if you customize it a little to your needs.
|
Works fine, but...
This export products mod worked fine for me, but just like another user found, it puts quotes at the beginning and end of each line.
I unfortunately had to delete these quotes manually. It also provides the Thumnail image (which is fine so far as Froogle has not noticed, but they do specifically ask for a detailed image). If anybody can post any workarounds for these 2 issues that would be very cool. |
Quote:
All our code is from scratch. Break out box from x-cart admin. Much more pleasant. :) Ours also limits the data outputted to what is publically available. The code above will export wholesale/special prices out too which most people don't want appearing in the search engines. |
I got rid of the multiple user problem, but the posted code sill puts in lots of blank lines. Has anybody modified the code to fix this? And if so might they share with us less savy users :wink: ?
If not does anybody have any sugestions on how to remove the extra lines? I do not have Excel as one person mentioned, but I am sure there is another way. Perhapse in emacs or vi? Or with some free or GLP utility? Thanks for the help. Chad Dave's Photo Emporium www.davesphotoemporium.com |
.
Hello,
Ok I have paste code in my product_export.tpl in main directory, Also Do I need to submit my website to froogle.com to be listed or this will work by self? thanks |
You need to do a bit more than that, you need to register an account with froogle.com and actually submit the generated data to them if you want to do it properly.
|
.
I have filled up form and now they said that they will send information to upload database.
|
.
ok, I sent them data feed and they want me to delete lines, now I don't know what lines! I open my data in exel and saw blank lines between products - Are they Talking about those lines? OR I have some lines blank for shipping charges where I had not put any values are they one?
Please let me know the quick way to delete them lines. Thanks |
I think I got it!
This does not print any extra lines. It also removes any extra tabs created by multiple carrage returns in the description (I am not sure why this happened with the old code but another |strip did the trick). Anyways, this is what I am using now for product_export.tpl: Code:
{strip} Now be carefull! This tpl seems very sensitive to extra spaces or lines in the code, so don't leave any! Also notice I am using the short description, not the full one (I dont use it for display on the website so now it is the "froogle" description). Also please note: You must define and assign the variable $line as the line delimiter in the export.php. Put this at the top: Code:
$line = "\n"; And this right after $smarty->assign("delimiter", $delimiter);: Code:
$smarty->assign("line", $line); This should export data ready for upload to froogle without modification (at least it does for me :wink: ). I am not a programmer and do not know all the etiquette so I hope I am not stepping on any toes posting this code seeing as how some of the lines are unchanged from the code posted earlier in the discussion. The idea is quite different though. Anyway, I make no claim to the code; use it for anything you want! Hopefully it helps! |
Automatic Froogle Update Code - No Templates Needed!
Here's some code that will automatically create a product file and send it to Froogle.
You can call it from X-Cart or it can be run automatically from 'cron' (on a Unix/Linux system). I suggest you install it in the xcart/provider directory. Jeff Code:
<? |
.
Hello
So How do I upload that Code?? And After that Will it send product data feeds byself or I will have to use ftp and upload it on froogle's server?? And If it sends automatically, How Do I know it has been sent? Also, Where do I put my User Name and Password for Froogle? Thanks. |
Did you read the instructions? It's all right there for you ;)
BTW, this looks like a very good mod. I haven't tried it myself, but it looks pretty solid from looking at the code. Great work! |
It has been running in production for the past month
I've been running the above code on my production system for over a month and it works fine. I have it set up in 'cron' to also email me a message when it runs. You can do something like this in your crontab:
Code:
15 2 * * * /usr/bin/php -q $HOME/public_html/xcart/provider/froogle_update.php | mail -s 'Froogle Update' me@mydomain.com |
For anybody using Froogle, can you comment on how much traffic you are getting from getting listed there? Thanks...
|
Cloud9, you can install X-Affiliate and assign froogle a partner id and track it that way.
Or, you can use your own tracking system. I have all froogle links pointing to "/froogle/?id=$productid" and I wrote my own tracking and redirection code. There's tons of code out there if you want to use that solution -- just check hostscripts or resourceindex. Hope this helps! |
Thanks Kurt, but I don't anticipate a problem tracking my stats once I'm in Froogle, I was just wondering what kind of hits stores that are already in Froogle were getting?
HairGuy, thanks so much for that script it made this process a breeze! For those that want to actually see what is being generated, you can modify the php above like this... # $fp = tmpfile(); $fp = fopen("./froogle_temp.txt", "w+"); |
Ah, in that case, I've gotten 9 clicks. I'm sure like 5 of those were in-house clicks.
|
Quote:
How would I set it to download the froogle feed to a directory on my website server? That way I could set a cron tab to do this - give it a quick check and submit it myself. I like to check what is being auto-generated before submitting. |
How to test it
To test the froogle_update.php script, just set the following variables (in the config.php file) to point to your FTP server:
$froogle_host = your FTP host $froogle_username = your FTP username $froogle_password = your FTP password If you do this, it will send the export file to your FTP server (instead of Google's). |
It is putting in an extra slash / following the .com - example
Code:
http://officeemergencysupplies.com//customer/product.php?productid=16134 |
Check the setting of the $xcart_web_dir variable in config.php. It is probably set to '/'.
The product URL uses $http_location to build the link, so check to see if it has a trailing slash. If it does, you could use preg_replace() to remove it. Try this: Code:
$product_url = preg_replace('/\/$/', '', $http_location).'/customer/product.php?productid='.$products[$key][productid].$partner_track; You may also need to do the same thing to $image_url If the above does not work, then you may be using a version of X-Cart that I am not familiar with. |
Thank you, worked like a charm. :)
|
Quote:
Hmmm.....I tried this and Google responded as follows: Thank you for submitting your data feed. We have reviewed your feed and need you to make some changes so that we can successfully process your feed. Please remove the first line of "$line = "\n";" from your data feed. Please also separate the header and each product from other products by using a line break. For example, after the shipping field for each product, there should be a line break to separate it from the next product. After you have made this change, please upload a new version of your feed with the same filename as before, and email us so that we can check the new version. Any suggestions ? |
Quote:
Yes use the froogle_update.php mod from HairGuy on the previous page. It is the best!!! I think x-cart developers should include it in the x-cart package. |
Yep, HairGuy's script rocks. The only things I had to tweak to get my feed accepted by Froogle was to remove the offer_id (I didn't have any), and modify the script to not add an image link if I didn't actually have an image for a product.
|
Quote:
Oop's I forgot about that. How did you modify the code to not add an image link for products with no images? What's an offer_id? |
All times are GMT -8. The time now is 08:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.