Backoffice - max cost margin #31

Merged
bilal.catic merged 22 commits from backoffice-max-cost-margin into master 2018-10-15 00:24:34 +02:00
Showing only changes of commit 84ba574bcb - Show all commits

View File

@@ -24,7 +24,7 @@ class Wiaas_Checkout {
$item_id = $item['data']->get_id();
if (wc_pb_is_bundle_container_cart_item($item) &&
(Wiaas_Package_Status::get_package_status($item_id) !== Wiaas_Package_Status::AVAILABLE)){
return false;
throw new Exception('Package ' . $item['data']->get_title() . ' cannot be purchased at the moment');
}
}