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

Moving cart and login containers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-28-2010, 06:16 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Moving cart and login containers

Hi there, I need to move the shopping cart up in the header, like it's on the Vivid Dreams - Lotus Template, but my template is Light and Lucid 3 columns. I've searched the head.tpl in the lotus template and it differs from the one in light and lucid template.

There divs in the lotus template that actually put the cart where I want:

<div class="head-bg">
<div class="head-bg2">
<div class="cart-container">

are missing in the Light and Lucid template. They are also missing in main.css. I need to move the shopping cart in this exact place, can someone explain me what to edit in order to get the cart in place.

Thanks in advance!
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
Reply With Quote
  #2  
Old 04-28-2010, 07:02 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Moving cart and login containers

First you have to move the minicart dialog out of the right column and put it in head.tpl instead. Create classes and used them to position the minicart
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
FTI (04-28-2010)
  #3  
Old 04-28-2010, 07:16 AM
  FTI's Avatar 
FTI FTI is offline
 

Senior Member
  
Join Date: Oct 2009
Location: Plovdiv, Bulgaria
Posts: 153
 

Default Re: Moving cart and login containers

Thank you, this is what I've added in main.css:

Code:
#header .head-bg2 { height: 100px; position: relative; background-color: #ffffff; } #header .head-bg2 .cart-container { width: 160px; height: 100px; position: absolute; top: 0px; right: 5px; } #header .cart-block { background-color: #ffffff; width: 160px; right: 5px; height: 100px; position: absolute; top: 0px; }

And this is what I've added in head.tpl:

Code:
<div class="line1"> <div class="logo"> <a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a> </div> <div class="cart-container"> <div class="cart-block"> {include file="customer/menu_cart.tpl" } </div> </div> {*include file="customer/phones.tpl"*} </div>

Do you think I need 2 classes for this purpose, cause I kind of think I don't need the first one. The cart looks good on all browsers, except IE6 of course... Now I need to edit the minicart panel itself... Thanks pal!
__________________
Version 4.2.3
X-Cart Gold

Version 4.3.1
X-Cart Gold
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 10:44 PM.

   

 
X-Cart forums © 2001-2020