I found the section of code in tpl_header.php that I think needs to be changed:
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 }?>
However, I'm having trouble with the basic syntax. When I tried this:
Code:
<?php /***pkl*** updated block below to always show shopping cart link, even if cart is empty. Continues to only show checkout link if there is something in shopping cart */
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php } ?>
/***pkl*** end of update */
my site only loads the background container and appears to be getting hungup on some syntax error. I'm having trouble figuring out where I can put comments too.
Thanks for your patience with me. Still learning the basics of php.
Bookmarks