From 252c97ca4f87e8aee82c9c03290eaa059e8a035a Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Thu, 1 Sep 2022 15:14:03 +0200 Subject: [PATCH] hide button checkout --- content/master.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/master.blade.php b/content/master.blade.php index 9cb91fb..ef7b867 100644 --- a/content/master.blade.php +++ b/content/master.blade.php @@ -178,7 +178,8 @@ if(objProductInfo == undefined) { $('#btn-add-to-bag').show(); $('#btn-show-bag').hide(); - $('#btn-check-out').parent().show(); + if(objProducts.length > 0) $('#btn-check-out').parent().hide(); + else $('#btn-check-out').parent().show(); } else { $('#btn-add-to-bag').hide();