Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default add view cart and checkout links

    Hi All,

    Does anyone know how to add VIEW CART and CHECKOUT NOW links or buttons to the header but only have them appear if there is an item in the cart???

    Thanks.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: add view cart and checkout links

    The links "Shopping Cart" and "Checkout" should appear in the header as standard whenever the cart is full. You could easily modify these links to say "View Cart" and "Checkout Now" if you wanted to?

  3. #3
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: add view cart and checkout links

    I have a contributed template installed (cherry zen) which may be why those links don't show up when an item is added to cart.

    Which files control the links "Shopping Cart" and "Checkout"? Maybe I can add them back in???

    Thanks.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: add view cart and checkout links

    Quote Originally Posted by gsdcypher View Post
    I have a contributed template installed (cherry zen) which may be why those links don't show up when an item is added to cart.

    Which files control the links "Shopping Cart" and "Checkout"? Maybe I can add them back in???

    Thanks.
    That would be..

    includes\templates\template_default\common\tpl_header.php

    Make sure to use the overide system if editing it.

    If you have any problems with this, I would suggest posting in the Cherry Zen Support Thread.

    Good luck.

  5. #5
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: add view cart and checkout links

    Is this the code that adds the links if there is something in the cart?

    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 }?>
    Could I just insert that into my where I want it to appear override file?

    Thanks

  6. #6
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: add view cart and checkout links

    I have been editing the tpl_ezpages_bar_header.

    Where do I change the text for the links "Shopping Cart" and "Checkout" that appear in the header?

    Thanks.

  7. #7
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: add view cart and checkout links

    Quote Originally Posted by gsdcypher View Post
    I have been editing the tpl_ezpages_bar_header.

    Where do I change the text for the links "Shopping Cart" and "Checkout" that appear in the header?

    Thanks.
    Probably..

    includes/languages/english/header.php

  8. #8
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: add view cart and checkout links

    Brilliant!!!

    Thanks!

 

 

Similar Threads

  1. Replies: 2
    Last Post: 24 Jun 2010, 11:20 PM
  2. Shopping Cart Page Not Found / Cant view cart or checkout
    By pquery in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 30 Oct 2009, 06:46 AM
  3. add to cart and view cart buttons
    By [email protected] in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Apr 2008, 09:27 PM
  4. View Cart (x) and Checkout
    By Nimbuz in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 3 Nov 2007, 05:20 AM
  5. 1 click, add to cart, and checkout?
    By snarkyFish in forum General Questions
    Replies: 0
    Last Post: 26 Jun 2007, 04:28 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