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; } } SPECIALS
  • 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

SPECIALS

   
 
View in browser
 
 
["Sun Electronics"]
 
 
HELP SUN SPREAD THE WORD ABOUT SOLAR POWER
 
 
Receive A $25 Credit For Your Testimonial!
 
 
  Send us pictures and your testimonials as outlined below to receive your free $25 credit.
 
 
Your stories are very important to guide others and inspire them to embrace solar energy.
 
 
We would love to hear your feedback. Help us help others by including:
 
1) Picture(s) of your solar array, the property, the power room where inverter, batteries etc. are. Be sure to show us you, the proud owners!
 
2) How well does the system work and what power does it give? (AC, refridgerator/freezer, water pump, etc.)
 
3) How cost effective was it? How much did it cost you? 
 
4) What motivated you the most to make the investment to go buy a PV system?
 
5) Are you happy with the results?
 
EMAIL US AT [email protected] WITH YOUR TESTIMONIAL. THANK YOU FOR YOUR SUPPORT!
 
 
Share Your Feedback ›
 
 
***2,000 Suniva 280 Watt Panels will be arriving at our warehouses soon! These panels will be C grade and are only 48¢/W***
 
 
 
Need Help? Call Us!
 
(786) 565-9359
 
 
Facebook   Twitter   Google+
 
 
16725 NW 20th Ave, Miami Gardens, FL 33056
 
 

This email was sent to {EMAIL}

You received this email because you are registered with Your Company