Fixed template selection bug
This commit is contained in:
@@ -57,7 +57,7 @@ class Wiaas_Admin_Template_Selection {
|
|||||||
$template_products_data = self::show_template_products($value);
|
$template_products_data = self::show_template_products($value);
|
||||||
|
|
||||||
self::render_template_products($template_products_data['hardware']);
|
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['installation']);
|
||||||
self::render_template_products($template_products_data['software']);
|
self::render_template_products($template_products_data['software']);
|
||||||
?></div><?php
|
?></div><?php
|
||||||
@@ -108,7 +108,7 @@ class Wiaas_Admin_Template_Selection {
|
|||||||
$template_products_hardware = WC_Product_Template::get_template_categories_from_meta(
|
$template_products_hardware = WC_Product_Template::get_template_categories_from_meta(
|
||||||
$selected_template, '_template_items_hardware');
|
$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');
|
$selected_template, '_template_items_services');
|
||||||
|
|
||||||
$template_products_installation = WC_Product_Template::get_template_categories_from_meta(
|
$template_products_installation = WC_Product_Template::get_template_categories_from_meta(
|
||||||
@@ -121,7 +121,7 @@ class Wiaas_Admin_Template_Selection {
|
|||||||
|
|
||||||
return array(
|
return array(
|
||||||
'hardware' => $template_products_hardware,
|
'hardware' => $template_products_hardware,
|
||||||
'service' => $template_products_service,
|
'services' => $template_products_services,
|
||||||
'installation' => $template_products_installation,
|
'installation' => $template_products_installation,
|
||||||
'software' => $template_products_software
|
'software' => $template_products_software
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user