handle bundle product prices editor and prices summary

This commit is contained in:
Almira Krdzic
2018-10-18 09:57:38 +02:00
parent b7ab761a25
commit 6d65a5f30c
18 changed files with 702 additions and 369 deletions

View File

@@ -38,7 +38,8 @@ class Wiaas_Access_Management {
// if product is not bundle or it not completed set it visible only for admin
if ($product->get_type() !== 'bundle' ||
$product->get_status() !== 'publish') {
$product->get_status() !== 'publish' ||
empty(Wiaas_Package_Pricing::get_package_prices($product))) {
$access_group = Groups_Group::read_by_name('admin');
} else {