Just wanted to get a simple text totals display along the top once a customer has added a product. Easy, right? Just add <?php echo $totalsDisplay; ?> like so:
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>
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; ?>
<?php echo $totalsDisplay; ?></a></li>
Almost - there's a catch, it doesn't seem to display the totals until the cart has been visited. After that, it's fine. BTW, I don't want the cart sidebox before anyone suggests it, thanks!
Incidentally, seems like it might be related, but at the checkout, Paypal only appears after the page has been visited once.
In other words, if you go to our checkout after adding a product, there's a note to refresh if you want to see the Paypal logo.
Same thing on brand new install. This is the ONLY session and cookie related issue we have (well, with the exception of the well-documented but not-fixed "items still in cart on return from Google Checkout bug), so I can't figure it out.
Bookmarks