Jump to content

Add "view Cart" To Category Bar At Top Of Page


Guest

Recommended Posts

I'm working on a custom theme based on Killer and incorporating as closely as possible the look of an existing design for the site.

Existing design: http://www.2fishweb.com/test/

Custom template so far: http://www.2fishweb.com/cubecart/

The client wants to get rid of the View Basket box on the left and add it as a tab on the top menu, as on the existing design page. I have found the categories.tpl page and see where the menu is being generated, but how do I add an item to the list without making "View Basket" a category?

Link to comment
Share on other sites

Separate question, but I don't want to clog up the forum with too many threads:

How do I set up a rollover for the menu tabs? She wants them to turn pink when hovered, as on the original design page.

Link to comment
Share on other sites

Open up boxes/categories.tpl and add the link there, similar to how the "home" link is added. You can add it at the end or at the beginning.

Jen

To get the roll-overs, just copy and paste the css code from the main site to one of the stylesheets and add the styles to the links in the boxes/categories.tpl file.

Jen

Link to comment
Share on other sites

Code from main site to use for roll-overs:

 <ul id="nav">

<li>

<a href="./">

<span>Home</span>

</a>

</li>




I think this is the css from main site that the roll-overs use:




#nav {

float:left;

font-family:Arial,helvetica,Sans-Serif;

line-height:normal;

list-style-image:none;

list-style-position:outside;

list-style-type:none;

margin:0pt 0pt 0pt -20px;

position:relative;

width:780px;

}

#nav li {

float:left;

margin:0pt;

padding:0pt;

}

#nav a, #nav a:active, #nav a:visited {

background:transparent url(images/ftleft.jpg) no-repeat scroll left top;

float:left;

margin:0pt;

padding:0pt 0pt 0pt 6px;

text-decoration:none;

}

#nav a span {

background:transparent url(images/ftright.jpg) no-repeat scroll right top;

color:#FFFFFF;

display:block;

float:left;

padding:5px 8px 4px 6px;

}

#nav a:hover {

background:transparent url(images/ftleft-on.jpg) no-repeat scroll left top;

color:#55A66F;

display:block;

float:left;

padding:0pt 0pt 0pt 6px;

}

#nav a:hover span {

background:transparent url(images/ftright-on.jpg) no-repeat scroll right top;

color:#000000;

display:block;

float:left;

padding:5px 8px 4px 6px;

}

Link to comment
Share on other sites

try this and see how it works, for categories.tpl

<!-- BEGIN: categories -->

<div class="topCats">

	   <ul id="nav">



<li><a href="index.php" class="txtCat"><span>{LANG_HOME}</span></a></li>

 

				<!-- BEGIN: li -->

					<li><a href="index.php?act=viewCat&catId={DATA.cat_id}" class="txtCat"><span>{DATA.cat_name}</span></a></li>

				<!-- END: li -->

				<li><a href="cart.php?act=cart" class="txtCat"><span>View Cart</span></a></li>

</ul>

</div>

<!-- END: categories -->

Jen

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...