Jump to content



Latest News: (loading..)

theantiquestore

Member Since 21 Aug 2006
OFFLINE Last Active Mar 07 2013 12:04 AM
*****

Posts I've Made

In Topic: Automatically send data feed to Froogle

18 February 2013 - 09:44 PM

View PostJack_mcs, on 09 February 2013 - 03:16 PM, said:

No, there isn't code for that in the file, though it could be added. You can exclude products though so if there are not too many, that would be the way to go. See the exclude products option in the googlefeeder.php file.

I'm looking in the googlefeeder.php file, I don't see where I can add a product number to exclude. Can you point me in the right direction?

Thanks!

In Topic: Exclude Category in Google Base Feed?

17 February 2013 - 05:25 PM

here is a function that already exists, I thought if I used $catParID somewhere as a statement to ignore the parent id of 897 it would work, I guess I don't have a clue what I'm doing.

function findCat($curID, $catTempPar, $catTempDes, $catIndex) {
   if( (isset($catTempPar[$curID])) && ($catTempPar[$curID] != 0) ) {
	   if(isset($catIndex[$catTempPar[$curID]])) {
		   $temp=$catIndex[$catTempPar[$curID]];
	   } else {
		   $catIndex = findCat($catTempPar[$curID], $catTempPar, $catTempDes, $catIndex);
		   $temp = $catIndex[$catTempPar[$curID]];
	   }
   }
   if( (isset($catTempPar[$curID])) && (isset($catTempDes[$curID])) && ($catTempPar[$curID] == 0) ) {
	   $catIndex[$curID] = $catTempDes[$curID];
   } else {
	   $catIndex[$curID] = $temp . ", " . $catTempDes[$curID];
   }
   return $catIndex;
}
$catIndex = array();
$catTempDes = array();
$catTempPar = array();
$processCat = mysql_query( $catInfo )or die( $FunctionName . ": SQL error " . mysql_error() . "| catInfo = " . htmlentities($catInfo) );
while ( $catRow = mysql_fetch_object( $processCat ) ) {
   $catKey = $catRow->curCatID;
   $catName = $catRow->catName;
   $catParID = $catRow->parentCatID;
   if($catName != "") {
	  $catTempDes[$catKey]=$catName;
	  $catTempPar[$catKey]=$catParID;
   }
}
foreach($catTempDes as $curID=>$des)  { //don't need the $des
   $catIndex = findCat($curID, $catTempPar, $catTempDes, $catIndex);
}

In Topic: Exclude Category in Google Base Feed?

17 February 2013 - 05:20 PM

I'll see what my little brain can come up with, the reason I need to exclude a category is that google is denying my entire feed based on one category "tobacciana" :(

In Topic: Exclude Category in Google Base Feed?

17 February 2013 - 02:15 AM

Maybe I could put the exclude products in the main category under this???

		 if(OPTIONS_ENABLED_PRODUCT_TYPE == 1)
			$output .= "\t" . ((OPTIONS_PRODUCT_TYPE == strtolower('full')) ? $catIndex[$row->prodCatID] : $row->catName);


In Topic: Exclude Category in Google Base Feed?

17 February 2013 - 02:11 AM

   if ($row->categories.categories_id == '897') continue;

doesnt work either... :(