handle bundle product prices editor and prices summary
This commit is contained in:
11
backend/app/plugins/wiaas/assets/js/wiaas-admin-package.js
Normal file
11
backend/app/plugins/wiaas/assets/js/wiaas-admin-package.js
Normal file
@@ -0,0 +1,11 @@
|
||||
jQuery(document).ready(function($) {
|
||||
if ($('#product-type').val() === 'simple') {
|
||||
$('#general_product_data').find('.pricing').show();
|
||||
} else {
|
||||
$('#general_product_data').find('.pricing').hide();
|
||||
}
|
||||
|
||||
$('#general_product_data').find('.pricing').addClass('hide_if_wiaastemplate hide_if_bundle');
|
||||
$('#general_product_data').find('.pricing').removeClass('show_if_bundle show_if_wiaastemplate');
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user