If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / "Shopping Cart" and "Checkout" link...

"Shopping Cart" and "Checkout" link...

Locked

Started by john9 on 25 Feb 2007, 6:46 PM · Views: 1,376

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Feb 2007, 6:46 PM
#1
john9 avatar

john9

New Zenner

Join Date:
Feb 2007
Posts:
40
Plugin Contributions:
0

"Shopping Cart" and "Checkout" link...

http://xs512.xs.to/xs512/07080/cart1.jpg

In that little region selected in the picture, whenever something is added to the cart the words "Shopping Cart" and "Checkout" come up. How can I make it so they are always there, instead of just when something is added to the cart?

25 Feb 2007, 11:47 PM
#2
jamesm avatar

jamesm

New Zenner

Join Date:
Jan 2007
Posts:
27
Plugin Contributions:
0

Re: "Shopping Cart" and "Checkout" link...

Open up includes/templates/yourtemplate/common/tpl_header.php

Look for:

<?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 }?>

And change to:

<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>

Hope that helps :)

26 Feb 2007, 5:08 AM
#3
john9 avatar

john9

New Zenner

Join Date:
Feb 2007
Posts:
40
Plugin Contributions:
0

Re: "Shopping Cart" and "Checkout" link...

Thanks, it did help :D

27 Mar 2007, 8:12 PM
#4
whippy avatar

whippy

New Zenner

Join Date:
Mar 2007
Posts:
14
Plugin Contributions:
0

Re: "Shopping Cart" and "Checkout" link...

Maybe this is what I need.

Situation:

A product is chosen and put in the cart. Then you can view the cart and the "Go to check out" link is there.

But, if you go back to shopping, the "Go to Check out" link is gone even though there is product in the cart.

So, is the method described above the way to get the "go to check out" link to display at all times when a product is in the cart?

If so, which of those codes should I change just to get the "go to check out" link displayed at all times when the cart is 'full'?

Thanks,

Whips