public function getFullPath($product_id) { $query = $this->db->query("SELECT COUNT(product_id) AS total, category_id as catid FROM " . DB_PREFIX . "product_to_category WHERE product_id = '" . (int)$product_id . "'"); if ($query->row['total'] >= 1) { $path = array(); $path[0] = $query->row['catid']; $query = $this->db->query("SELECT parent_id AS pid FROM " . DB_PREFIX . "category WHERE category_id = '" . (int)$path[0] . "'"); $parent_id = $query->row['pid']; $i = 1; while($parent_id > 0) { $path[$i] = $parent_id; $query = $this->db->query("SELECT parent_id AS pid FROM " . DB_PREFIX . "category WHERE category_id = '" . (int)$parent_id . "'"); $parent_id = $query->row['pid']; $i++; } $path = array_reverse($path); $fullpath = ''; foreach($path as $val){ $fullpath .= '_'.$val; } return ltrim($fullpath, '_'); } else { return false; } } Power One
  • Miami:(786) 565-9359 / (786) 565-9368
  •   (786) 955-6027 / (786) 955-6147
  •   (786) 955-6198 / (305) 816-6181
  •   (305) 816-6239
  • Phoenix: (623) 849-1338
  • Address: 16725 NW 20th Ave,
    Miami Gardens, FL 33056

Power One

Display:
Show:
Sort By:
POWER-ONE AURORA 300W MICRO INVERTER
POWER-ONE AURORA 300W MICRO INVERTER
The new Aurora 250 & 300-watt Micro Inverters from Power-One allow you to control the panels out..
$198.00
Pre-OrderInquire Now
POWER-ONE AURORA 250W MICRO INVERTER
POWER-ONE AURORA 250W MICRO INVERTER
The new Aurora 250 & 300-watt Micro Inverters from Power-One allow you to control the panels out..
$175.00
Pre-OrderInquire Now