CYA
  • Products
  • Promo
  • Services
  • Where to Buy
  • Why Karcher
$unused) { return $key; } return NULL; } } function generate_breadcrumb($name, $url='', $i=0) { if(empty($url)) { return '' . $name . ''; } return '' . l($name, $url, array( 'attributes' => array( 'class' => array('easy-breadcrumb_segment', 'easy-breadcrumb_segment-' . $i) ) ) ) . ''; } $breadcrumb = array(); $view = views_get_page_view(); if (is_object($view)) { // dpm($view->name); // dpm($view->current_display); if($view->name == 'u_products' && strpos($view->current_display, 'products_inner') !== FALSE) { $product = commerce_product_load_by_sku($view->args[0]); // dpm($product); $query = new EntityFieldQuery; $query->entityCondition('entity_type', 'node', '=') ->propertyCondition('type', 'product_display') ->fieldCondition('field_products', 'product_id', $product->product_id, '='); $result = $query->execute(); $nid = array_key_first($result['node']); $node = node_load($nid); // dpm($node); $branch_term = taxonomy_term_load($node->field_branch['und'][0]['tid']); $field_cat = strtolower($branch_term->name); if($branch_term->name == 'GE Appliances') { $field_cat = 'ge'; } else if($branch_term->name == 'GE Water & Pentair') { $field_cat = 'water'; } $field_name = 'field_prod_cat_' . $field_cat; $cat_id = $node->$field_name['und'][0]['tid']; $tree = taxonomy_get_parents_all($cat_id); $category_tree = array_reverse($tree); // dpm($category_tree); $i = 3; $breadcrumb[] = generate_breadcrumb($branch_term->name, drupal_get_path_alias('taxonomy/term/' . $branch_term->tid), 1); $breadcrumb[] = generate_breadcrumb('Products', drupal_get_path_alias('taxonomy/term/' . $branch_term->tid) . '/products', 2); foreach($category_tree as $category_term) { $breadcrumb[] = generate_breadcrumb($category_term->name, drupal_get_path_alias('taxonomy/term/' . $category_term->tid), $i++); } $breadcrumb[] = generate_breadcrumb($node->title); } } else { $term = menu_get_object('taxonomy_term', 2); if($term) { // dpm($term); $current_path_alias = explode('/', request_path()); $branch_path_normal = drupal_get_normal_path($current_path_alias[0]); $branch_path = explode('/', $branch_path_normal); $branch_term = taxonomy_term_load(end($branch_path)); // dpm($branch_term); $tree = taxonomy_get_parents_all($term->tid); $category_tree = array_reverse($tree); $max = count($category_tree); $i = 3; $breadcrumb[] = generate_breadcrumb($branch_term->name, drupal_get_path_alias('taxonomy/term/' . $branch_term->tid), 1); $breadcrumb[] = generate_breadcrumb('Products', drupal_get_path_alias('taxonomy/term/' . $branch_term->tid) . '/products', 2); foreach($category_tree as $i => $category_term) { if($i < $max-1) { $breadcrumb[] = generate_breadcrumb($category_term->name, drupal_get_path_alias('taxonomy/term/' . $category_term->tid), $i++); } else { $breadcrumb[] = generate_breadcrumb($category_term->name); } } } } // dpm($breadcrumb); ?>
/ ', $breadcrumb); ?>
Ariston & indesit / Categories / Pressure Washer
Karcher Products
Vacuum Cleaner
Wet and Dry Vacuum
Vacuum Cleaner with Water Filter
Window Vacuum
Electric Broom
Steam Cleaner
Pressure Washer
Accessories
Please wait while image is loading.
Kärcher K 1 Pressure Washer
Alt
Kärcher K 2 Compact Pressure Washer
Alt
Kärcher K 2 Compact Pressure Washer
Alt
Kärcher K 4 Pressure Washer
Alt
Kärcher K 5 Premium Pressure Washer
Alt
  • Brands
  • About
  • Services
  • Contact
  • Online Shop
  • Privacy Policy

© 2020 CYA Industries Inc. All Rights Reserved.