If you have entered LBS/IN as your units in ASA, the output in eBay will remain LBS/IN. If you are using KGS/CM, they will be converted to LBS/IN by the eBay Exporter.
The categories function should work for all levels. It takes the same input as the product_type in the Google Base Feeder and then compares each category in the array to the category name you have indicated in the eBay Exporter to include or exclude:
PHP Code:
function zen_ebay_categories($words, $compwords, $charge) {
if ($words != '') {
$match = 0;
$compwords = split(",", $compwords);
$words = split(",", $words);
foreach ($words as $word) {
foreach ($compwords as $compword) {
if (trim(strtolower($compword)) == (trim(strtolower($word)))) {
$match++;
break;
}
}
}
if ($match > 0) {
return true;
} else {
return false;
}
} else { // if $words is empty, return either true or false depending on positive or negative words
if ($charge == 1) {
return true;
} else if ($charge == 2) {
return false;
}
}
}