diff options
| author | Kumar Priyansh <[email protected]> | 2019-06-03 06:23:12 +0530 |
|---|---|---|
| committer | Kumar Priyansh <[email protected]> | 2019-06-03 06:23:12 +0530 |
| commit | 2711412efe2b75342180e2cef4a52371ded3627f (patch) | |
| tree | f186823ba96048f63ddcd6d8d2df3024c5349b5c /shared | |
| parent | 33d5841b58e2c7f8b69e07c404da809060f3dad6 (diff) | |
| download | firebase-ecommerce-2711412efe2b75342180e2cef4a52371ded3627f.tar.xz firebase-ecommerce-2711412efe2b75342180e2cef4a52371ded3627f.zip | |
Updated Empty Cart Function
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/cart.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/cart.js b/shared/cart.js index 8393565..4d7b8ea 100644 --- a/shared/cart.js +++ b/shared/cart.js @@ -38,6 +38,11 @@ $(document).ready(function(){ showEmptyCart(); } }); + + function showEmptyCart() { + $('#loader').html('<h1>Your Cart is Empty</h1><p>Click <a href="../">here</a> to shop for some products.</p>'); + showAlert('Your cart is empty. Go add something.') + } }); |
