Forums / Templates, Stylesheets, Page Layout / need to make 'checkout' link in shopping cart side box, not in header

need to make 'checkout' link in shopping cart side box, not in header

Locked

Started by jamesdavid on 29 May 2008, 9:51 AM · Views: 2,835

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
29 May 2008, 9:51 AM
#1
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

need to make 'checkout' link in shopping cart side box, not in header

I have a shopping cart side box. When I add something to my cart however a 'checkout' link appears in the header. How can I make this link appear in the cart, and not in the header?

thanks
james

29 May 2008, 1:04 PM
#2
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

This add-on will do that for you and add the image. Or you can add just the checkout button with this one.

29 May 2008, 1:10 PM
#3
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Thanks a lot, will this also remove the 'checkout' link from my header? Or do I need to do this aswell some other way?

thanks

29 May 2008, 1:21 PM
#4
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

No, it will not remove it from the header. However, I believe that it is probably as easy as going to admin/tools/Layout Box Controller and turning off search_header.php.

Good luck!

29 May 2008, 1:25 PM
#5
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

My sideboxes/search_header.php is turned off but i still have 'shopping cart' and 'checkout' in my header.

29 May 2008, 1:40 PM
#6
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

jamesdavid:

My sideboxes/search_header.php is turned off but i still have 'shopping cart' and 'checkout' in my header.

Look again to make sure that you have indeed turned off both radio buttons, including the Single Column Status: at the bottom of the box. I can turn mine on and off from there. (And also that you are turning off the correct search because there is search_header.php and search.php)

29 May 2008, 1:45 PM
#7
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

search_header.php seems to control the search box in the header, im trying to remove the Shopping Cart and Checkout links that appear next to Home and Log In.

29 May 2008, 1:49 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

You will have to comment out the code that controls those links in your tpl_header.php

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 May 2008, 1:53 PM
#9
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

oppsss...! Sorry, I go off track doing something else and forgot what it was you were removing. :oops:

It seems kind of extreme but check out this thread. However, I would suspect that there is probably another way...

29 May 2008, 1:54 PM
#10
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Which bit do I need to edit out?

I use firebug to find what CSS to edit all the time, is there a similar program that finds what PHP to edit/ remove?

thanks
james

29 May 2008, 1:58 PM
#11
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Comment out or remove the bold section below.

<div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> <?php } } ?>

**<?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 }?>** </ul> </div> <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display-->

Don't forget to use your overrides!

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 May 2008, 2:04 PM
#12
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Great, thanks a lot!

I also want my categories to be in the same menu as 'Home' and 'Log In'.

I've managed to achieve this with a mixture of moving around PHP and editing the CSS. It seems to be working OK but I dont really understand what ive done. Is there a download or CSS only solution?

29 May 2008, 2:32 PM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Simple answer? No.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 May 2008, 2:33 PM
#14
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: need to make 'checkout' link in shopping cart side box, not in header

Haha, OK thanks a lot. :smile: