add proper message when adding invalid package to cart

This commit is contained in:
Bilal Catic
2018-10-14 15:31:27 +02:00
parent ba2629ca22
commit 9f3fe44bb1

View File

@@ -137,6 +137,7 @@ class Wiaas_Cart {
//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;
}