Quote Originally Posted by agcolbert View Post
Hi Jade,
Thanks for your reply.


No, it's not breaking. I just I think if checkout is selected when the cart is empty, then it is preferable to show an empty trolley rather than suggesting a timeout has occured and requesting the customer signin (when they may not have an account yet).


I gave that a try but it then it redirects to Shopping Cart in all instances, not just when the Cart is empty.

I'll keep looking and will post if I find anything.
Thanks again.
The the code below. I may have messed up some syntax, so let me know if it doesn't work.

Code:
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>

<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>

<?php } else if ($_SESSION['cart']->count_contents() == 0) { ?>

<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span class="last"><?php echo HEADER_TITLE_CHECKOUT; ?></span></a></li>


<?php }?>