hide button checkout

master
Gustavo Luigi 2022-09-01 15:14:03 +02:00
parent 9aef0568c7
commit 252c97ca4f
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@
if(objProductInfo == undefined) { if(objProductInfo == undefined) {
$('#btn-add-to-bag').show(); $('#btn-add-to-bag').show();
$('#btn-show-bag').hide(); $('#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 { else {
$('#btn-add-to-bag').hide(); $('#btn-add-to-bag').hide();