Fixed template selection bug

This commit is contained in:
Nedim Uka
2018-10-04 13:14:49 +02:00
parent f41252ea23
commit c102b6a5ad

View File

@@ -57,7 +57,7 @@ class Wiaas_Admin_Template_Selection {
$template_products_data = self::show_template_products($value);
self::render_template_products($template_products_data['hardware']);
self::render_template_products($template_products_data['service']);
self::render_template_products($template_products_data['services']);
self::render_template_products($template_products_data['installation']);
self::render_template_products($template_products_data['software']);
?></div><?php
@@ -108,7 +108,7 @@ class Wiaas_Admin_Template_Selection {
$template_products_hardware = WC_Product_Template::get_template_categories_from_meta(
$selected_template, '_template_items_hardware');
$template_products_service = WC_Product_Template::get_template_categories_from_meta(
$template_products_services = WC_Product_Template::get_template_categories_from_meta(
$selected_template, '_template_items_services');
$template_products_installation = WC_Product_Template::get_template_categories_from_meta(
@@ -121,7 +121,7 @@ class Wiaas_Admin_Template_Selection {
return array(
'hardware' => $template_products_hardware,
'service' => $template_products_service,
'services' => $template_products_services,
'installation' => $template_products_installation,
'software' => $template_products_software
);