Merge branch 'master' into commercial-lead-prices

This commit is contained in:
Almira Krdzic
2018-10-15 00:31:24 +02:00
13 changed files with 364 additions and 9 deletions

View File

@@ -135,6 +135,12 @@ class Wiaas_Cart {
return false;
}
//Check if package is available for adding to cart
if (Wiaas_Package_Status::get_package_status($package_id) !== Wiaas_Package_Status::AVAILABLE){
wc_add_notice('Package cannot be purchased at the moment', 'error');
return false;
}
// Retrieve package country
$country = Wiaas_Countries::get_package_country($package);