Re: Google Base Feeder Support Thread
Thank you for the information this worked out great.
Quote:
Originally Posted by
DivaVocals
Thanks Dave..
This was a HUGE help for me..
This fixed double quotation (") marks in my client's product descriptions, but not the product titles. (ie:
12-14" Widget) I also needed to add a fix for ampersands (&) used instead of the word "and" in product descriptions. So I modified your change slightly as follows:
In \includes\classes\google_base.php around line 202 find this:
PHP Code:
$str = str_replace(array("<", ">"), array("<", ">"), $str);
Replace that line with:
PHP Code:
// $str = str_replace(array("<", ">"), array("<", ">"), $str);
// 10-01-2009 Updated to correct quotation marks and ampersands in product titles and descriptions
$str = str_replace(array("lt;", "gt;", "quot;", """, "amp;"), array("<", " &qt; ", """, "\"", "&"), $str);
When I make these kinds of changes I like to comment out the original code versus simply replacing it and I always include comments so I know WHY I made the change.. (in case I have a senior moment!:laugh:) so if I need to roll back my change I can easily do this.
Like Dave said.. Nothing wrong with the code.. just with how my clients product titles and descriptions are managed needed a little massaging to make Google happy..
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
countrycharm
Thank you for the information this worked out great.
Color me shocked!! You mean some of my babblings actually helped someone!!:laugh: You're welcome glad it was of help..
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
DivaVocals
Color me shocked.. You mean some of my babblings actually helped someone!!:laugh: You're welcome glad it was of help..
I'll take some of those babblings toward my problem :)
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
hypercoyote
I'll take some of those babblings toward my problem :)
Wish I could help.. but I am always willing to share my findings with the community (accidental and otherwise..:laugh:)
But have you tried going to Numinix's forum too?? I have found some questions and answers posted there that weren't on this support thread... Perhaps someone has posted your same issue there..
Re: Google Base Feeder Support Thread
Yeah, I think the problem is I don't know what exactly I'm searching for.
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
hypercoyote
Yeah, I think the problem is I don't know what exactly I'm searching for.
I have help in this thread for a while now but you would have to ask Numinix's for what you want to do. sorry I'm not able to help. You can ask over at his form here
Re: Google Base Feeder Support Thread
lol, yeah I did. They suggested installing Auction Attribute Site. This did add the UPC fields and all that, but it still wasn't putting it in the XML when I generated it. So when I asked about that, they said the feeder didn't support Auction Attribute Site.....WHAT?
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
hypercoyote
lol, yeah I did. They suggested installing Auction Attribute Site. This did add the UPC fields and all that, but it still wasn't putting it in the XML when I generated it. So when I asked about that, they said the feeder didn't support Auction Attribute Site.....WHAT?
I see your point. I just went over their and seen what he had to say. Kind of pointless.
Re: Google Base Feeder Support Thread
Yeah, the thing is, if the documentation was better, I could figure it out myself. But I don't really understand how this module works, so I can't figure out where to fix it. Otherwise I would just add some code to the php that creates the xml file to have it grab those extra attributes.
Re: Google Base Feeder Support Thread
Quote:
Originally Posted by
hypercoyote
Yeah, the thing is, if the documentation was better, I could figure it out myself. But I don't really understand how this module works, so I can't figure out where to fix it. Otherwise I would just add some code to the php that creates the xml file to have it grab those extra attributes.
Actually... it's not that hard! Look in the add-ons for ubc/isbn mod or click...
This mod "Creates UPC and ISBN input field in products.php and stores the information in the products TABLE in the database." It doesn't display them, just creates what the feeder needs.
Once you install and add all your UPC's, then you can use them as the offer ID or by them self, with a simple click in the admin googlebase feeder settings.
The code looks like it may be looking for the auction mod as will so you may have to install it too.