-- HikaShop version -- : 1707131901
Hi,
I am not sure should it be by default but I see some issue when looking into user->my wishlist.
When you register new user and go to my wishlist page you will see message that wishlist is empty. All fine here.
However if you add anything to wishlist and delete it that message no longer appears instead you see empty table elements and so on.
I think message should be always displayed if there is nothing into wishlist and hikashop show cart form should be hidden.
As for now I have wrapped cart->show view in if statement and display my own message like this:
<?php
foreach($this->cart->products as $product) {
$number_of_items+=$product->cart_product_quantity;
}
if(($this->cart->cart_type == 'wishlist') && empty($number_of_items)) echo '<div class="alert alert-info">Your wishlist is empty.</div>';
?>
<?php if (!empty($number_of_items)) { ?>
// cart->show content here
<?php } ?>
Not sure is this a right way so looking for advise here or some fix which should be by default....Just looking to have esthetic look in user panel.
Kind Regards