Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Totals display not there until AFTER checkout show.

    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.

  2. #2
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Re: Totals display not there until AFTER checkout show.

    Anyone? I know I shouldn't bump, but I've been looking around over the weekend and can't seem to crack this without opening a hidden "cart" window as a popup - hardly the ideal!

  3. #3
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Re: Totals display not there until AFTER checkout show.

    Found it.

    Just below:

    if ($_SESSION['cart']->count_contents() > 0) {

    you need to add

    PHP Code:
    $totalsDisplay ": Number of items: " $_SESSION['cart']->count_contents() . " Total: " $currencies->format($_SESSION['cart']->show_total()); 
    Then it'll work.

 

 

Similar Threads

  1. Paypal not showing totals until after customer fills up paymet info
    By srstore in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 27 Apr 2011, 08:36 AM
  2. Replies: 4
    Last Post: 13 Feb 2010, 07:33 PM
  3. Paypal Express checkout don't show button after installing Google Checkout
    By jgarabot in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 2 Apr 2007, 07:59 AM
  4. PayPal 2.0- Is there a way to not charge until delivery?
    By catangirl in forum Addon Payment Modules
    Replies: 1
    Last Post: 31 Jan 2007, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR