Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cart in head in one line

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2004, 02:22 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default Cart in head in one line

Hi,

I'm able to put my cart in the head.tpl, but it still has the look of the menu, and it's the full width. I want it to appear without any background color, and everything in one line, behind the search area, eg:

Search [box] GO Advanced search - Your cart: 52.50 Euro in cart | View cart | Checkout

Can anyone help me out here? Or guide me to the right topic?

Thanks
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #2  
Old 10-19-2004, 04:28 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Try with this code (header minicart):
Quote:
<TABLE border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
{if $minicart_total_items > 0}
[img]{$ImagesDir}/cart_full.gif[/img]
{else}
[img]{$ImagesDir}/cart_empty.gif[/img]
{/if}
</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD>
<TD class="VertMenuItems" color="#0000ff">{$minicart_total_items}{else}{$lng.lbl_cart_is_empty}{/if}</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_total}: </TD>
<TD class="VertMenuItems">{include file="currency.tpl" value=$minicart_total_cost}{/if}</TD>
</TR>
</TABLE>
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #3  
Old 10-19-2004, 04:50 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Thanks, but didn't work

Look at: http://hobbyhandig.webfontein.nl/home.php

[/url]
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #4  
Old 10-19-2004, 06:11 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Well....this is not the same code...
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #5  
Old 10-19-2004, 06:16 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Sorry, changed it back already,javascript:emoticon('') will leave it as you said this time... but the look stays the same. One pink cart menu at full width...
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #6  
Old 10-19-2004, 06:42 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

1. Create a header_minicart.tpl file in xcart/skin_folder/customer/ and add the following code;

Code:
<TABLE border="0" cellpadding="0" cellspacing="0"> <tr> <td>[img]{$ImagesDir}/spacer.gif[/img]</TD> <td> {if $minicart_total_items > 0} [img]{$ImagesDir}/cart_full.gif[/img] {else} [img]{$ImagesDir}/cart_empty.gif[/img] {/if} </TD> <TD class="header_minicart">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD> <TD class="header_minicart" color="#0000ff">{$minicart_total_items}{else}{$lng.lbl_cart_is_empty}{/if}</TD> <TD class="header_minicart">{if $minicart_total_items > 0}{$lng.lbl_total}: </TD> <TD class="header_minicart">{include file="currency.tpl" value=$minicart_total_cost}{/if}</TD> <td>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD class="header_minicart">{$lng.lbl_view_cart}|{$lng.lbl_checkout}</TD> </TR> </TABLE>

1. Open xcart/skin_folder/skin1.css and add the following code;

Code:
.header_minicart{ COLOR: #330000; TEXT-DECORATION: none; } .header_minicart:link { COLOR: #330000; TEXT-DECORATION: none; } .header_minicart:visited { COLOR: #330000; TEXT-DECORATION: none; } .header_minicart:hover { COLOR: #550000; TEXT-DECORATION: underline; } .header_minicart:active { COLOR: #330000; TEXT-DECORATION: none; }

3. 1. Open xcart/skin_folder/customer/search.tpl and replace:

Code:
</TR> </FORM> </TABLE>

with this:

Code:
<TD>{ include file="customer/header_minicart.tpl" }</TD> </TR> </FORM> </TABLE>
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #7  
Old 10-19-2004, 07:01 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Okay, we're getting there... Where are "View Cart" and "Checkout".
Advanced search is now a blue link, and also contact us in my speed bar. I've changed the CSS to my site colors, but they stay blue...

If I'm being stupid please say so, I really hate bothering people
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #8  
Old 10-19-2004, 07:17 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Updated header_minicart.tpl file (in xcart/skin_folder/customer/ )..added "View Cart" and "Checkout" links;


Code:
<TABLE border="0" cellpadding="0" cellspacing="0"> <tr> <td>[img]{$ImagesDir}/spacer.gif[/img]</TD> <td> {if $minicart_total_items > 0} [img]{$ImagesDir}/cart_full.gif[/img] {else} [img]{$ImagesDir}/cart_empty.gif[/img] {/if} </TD> <TD class="header_minicart">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD> <TD class="header_minicart" color="#0000ff">{$minicart_total_items}{else}{$lng.lbl_cart_is_empty}{/if}</TD> <TD class="header_minicart">{if $minicart_total_items > 0}{$lng.lbl_total}: </TD> <TD class="header_minicart">{include file="currency.tpl" value=$minicart_total_cost}{/if}</TD> <td>[img]{$ImagesDir}/spacer.gif[/img]</TD> <TD class="header_minicart">{$lng.lbl_view_cart}|{$lng.lbl_checkout}</TD> </TR> </TABLE>
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #9  
Old 10-19-2004, 07:28 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Yes! Now only adjusting blue links...
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #10  
Old 10-19-2004, 07:32 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Also, to add more space between "Items" and "Total " insert
after:
Code:
{if $minicart_total_items > 0}
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:11 PM.

   

 
X-Cart forums © 2001-2020