Connected template category to product in bundle product search #43

Merged
nedimu merged 3 commits from template-category-in-simple-product-search into master 2018-10-26 09:41:58 +02:00
Showing only changes of commit a94afea151 - Show all commits

View File

@@ -73,7 +73,7 @@ class Wiaas_Admin_Product_Additional_Info {
} else {
$template_category = wp_get_object_terms($product_form_search->get_id(), 'template_category', array('fields' => 'names'));
if(!empty($template_category)){
$search_results[$product_form_search->get_id()] = $search_results[$product_form_search->get_id()].'-'.$template_category[0];
$search_results[$product_form_search->get_id()] = $search_results[$product_form_search->get_id()].' ['.$template_category[0].']';
}
}
}