Fixed bug where template categoryes are not save properly in template

This commit is contained in:
Nedim Uka
2018-10-04 12:41:17 +02:00
parent 7ceac97fed
commit c5c07cbfae
3 changed files with 5 additions and 5 deletions

View File

@@ -41,14 +41,14 @@ jQuery(function ($) {
$template_search_installation
.on('change', function () {
addSearchedTemplateCategory('services', $template_search_installation, $template_categories_container_isntallation)
addSearchedTemplateCategory('installation', $template_search_installation, $template_categories_container_isntallation)
});
$template_search_services
.on('change', function () {
addSearchedTemplateCategory('installation', $template_search_services, $template_categories_container_services)
addSearchedTemplateCategory('services', $template_search_services, $template_categories_container_services)
});
@@ -71,7 +71,7 @@ jQuery(function ($) {
post_id: woocommerce_admin_meta_boxes.post_id,
id: template_category_add_count,
title: template_category_title,
product_id: template_category_id,
template_category_id: template_category_id,
security: wc_bundles_admin_params.add_bundled_product_nonce,
options: options,
};

View File

@@ -109,7 +109,7 @@ class Wiaas_Admin_Template_Selection {
$selected_template, '_template_items_hardware');
$template_products_service = WC_Product_Template::get_template_categories_from_meta(
$selected_template, '_template_items_service');
$selected_template, '_template_items_services');
$template_products_installation = WC_Product_Template::get_template_categories_from_meta(
$selected_template, '_template_items_installation');

View File

@@ -38,7 +38,7 @@ class Wiaas_Template_Admin_Ajax {
if (!empty($template_products)) {
ob_start();
Wiaas_Admin_Template_Selection::render_template_products($template_products['hardware']);
Wiaas_Admin_Template_Selection::render_template_products($template_products['service']);
Wiaas_Admin_Template_Selection::render_template_products($template_products['services']);
Wiaas_Admin_Template_Selection::render_template_products($template_products['installation']);
Wiaas_Admin_Template_Selection::render_template_products($template_products['software']);