Untitled

 avatar
unknown
php
a year ago
585 B
4
Indexable
  $notFurniture = ['Καλύτεροι πωλητές', 'Καθρέφτες', 'Φωτιστικά τοίχου', 'Επιτραπέζια φωτιστικά', 'Πολυέλαιοι', 'Φωτιστικά δαπέδου', 'Φωτισμός', 'Βάσεις για κρασί', 'Βάσεις χαρτιού υγείας', 'Μαξιλάρια', 'Αξεσουάρ'];
      
      if(in_array($product['category'], $notFurniture)) {
        $productCategory = 'Other';
      } else {
        $productCategory = 'Furniture';
      }

      $item->addChild('g:custom_label_1', $productCategory);
Editor is loading...
Leave a Comment