Air Suggest Settings
Submit
Bough Togther
Cheaper option
Best Value
ON
OFF
Short by: A to Z
Short by: Z to A
Short by: Low to High
Short by: High to Low
Short by: Avg Rating
10 Items
15 Items
20 Items
25 Items
30 Items
Bough Togther
Cheaper option
Best Value
ON
OFF
Short by: A to Z
Short by: Z to A
Short by: Low to High
Short by: High to Low
Short by: Avg Rating
10 Items
15 Items
20 Items
25 Items
30 Items
'; } function airs_get_product_categories_in_hierarchy($productID) { $terms = get_the_terms($productID, 'product_cat'); $cat1 = ''; $cat2 = ''; $cat3 = ''; foreach ($terms as $data) { $ancestors = get_ancestors($data->term_id, 'product_cat'); if (count($ancestors) == 2) { $cat3 = $data->name; } elseif (count($ancestors) == 1) { $cat2 = $data->name; } else { $cat1 = $data->name; } } return $cat1 . (!empty($cat2) ? (!empty($cat3) ? '|||' . $cat2 . '|||' . $cat3 : '|||' . $cat2) : ''); } add_action('woocommerce_after_single_product_summary', 'AirSuggestUpSellOnProductPage'); ?>