Hi, will working if the name of categories are on same language. Otherwise will not working on different languages, unless you use proper condition for current language by user.
Maybe is not the best solution with "if and else" with a lot of languages, but with few languages you can do something like:
<?php
if(osc_current_user_locale() == en_US) {
if(osc_item_category() == 'Art - Collectibles' or osc_item_category() == 'Animals' ) {
/* your code */
}
} elseif(osc_current_user_locale() == pt_PT) {
if(osc_item_category() == 'Arte - Colecionáveis' or osc_item_category() == 'Animais' ) {
/* your code */
}
}
?>
My suggestion is you use category Id and forget category by name, this a way you avoid condition to current language by user.
You just need change the number ID for your category numbers you really need.
<?php if(osc_item_category_id() == '9' or osc_item_category_id() == '10' ) {?>
you can see this text on your items on these categories ID
<?php } ?>
But both codes will working.
Regards