have import module, which imports new products from xml feed. I need to check, if [CATEGORYTEXT] contains for example word Rings.
// category
if (array_key_exists((string)$item->CATEGORYTEXT, $categoria_shop))
{
$produkt_categoria_shop = $categoria_shop[(string)$item->CATEGORYTEXT];
$produkt_status = 1;
}
else
{
$produkt_categoria_shop = $categoria_shop_undefined;
$produkt_status = 0;
}
How can I do that? Example: if CATEGORYTEXT = DYRBERG/KERN | Rings
then $produkt_categoria_shop = "Rings"
Thank you
No comments:
Post a Comment