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

Moving cart to footer

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-10-2010, 09:55 PM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Moving cart to footer

I've just started playing with X-Cart and I am attempting to move the mini cart to the footer of the website.

I have moved the code {include file="customer/menu_cart.tpl" } to under the footer in the home.tpl which works fine, however the cart is the full width of the page, how can i reduce it's width and possibility add another item done beside it?

Thanks
__________________
Multiple instances of X-cart
Reply With Quote
  #2  
Old 08-10-2010, 10:36 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Moving cart to footer

it will depend on your template, you could do this with CSS, use firefox and firebug to work out which element you need, and set it's width to 50% or so, and float perhaps depending on what you want next to it,

hth
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #3  
Old 08-10-2010, 10:54 PM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: Moving cart to footer

Hi amy2203,

Many thanks for your help. I have tried playing with the "footer.box' settings in the CSS file and this only changes the footer below the line.

It seems the "footer" in home.tpl is controlled elsewhere, or I am simpy doing it wrong.

I have changed the footer.box width in main.css to 50% to illustrate the example and have attached a picture.
Attached Thumbnails
Click image for larger version

Name:	Footer.jpg
Views:	163
Size:	45.6 KB
ID:	2032  
__________________
Multiple instances of X-cart
Reply With Quote
  #4  
Old 08-10-2010, 11:07 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Moving cart to footer

you'll probably need to edit the cart elements rather than the footer, maybe post your url so people can take a look,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #5  
Old 08-10-2010, 11:14 PM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: Moving cart to footer

Thanks again for your assistance, unfortunately my site is hosted on a isolated VM for testing. I'll keep poking around to try and figure it out.
__________________
Multiple instances of X-cart
Reply With Quote
  #6  
Old 08-11-2010, 02:50 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Moving cart to footer

Put the cart dialog in a div and give this div width - 200px or whatever works for you
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
BBM_ (08-11-2010)
  #7  
Old 08-11-2010, 03:03 AM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: Moving cart to footer

Quote:
Originally Posted by cflsystems
Put the cart dialog in a div and give this div width - 200px or whatever works for you

You %$##^ legend! I have spent to long on this trying to figure it out.

If i can ask 1 more question, how can i line up 2 elements side by side (ie Cart and Help) as at the moment they are one under the other.
__________________
Multiple instances of X-cart
Reply With Quote
  #8  
Old 08-11-2010, 03:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Moving cart to footer

<div style="width:200px;float:left">CODE FOR CART DIALOG</div>
<div style="width:200px;float:left">CODE FOR HELP DIALOG</div>
<div class="clearing"></div>

Or you can even use table if you want to by putting each dialog in separate cell. Whichever works better for you.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
BBM_ (08-11-2010)
  #9  
Old 08-11-2010, 03:12 AM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: Moving cart to footer

Wow cflsystems,

I really appreciate your help on this. Looks like I need to brush up on my tables knowledge and formatting.

Thanks again, now to dig deeper into the code
__________________
Multiple instances of X-cart
Reply With Quote
  #10  
Old 08-11-2010, 03:16 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Moving cart to footer

No problem. If you use the divs put the inline styling in a css class and call the class in the divs. In main.css

.new_class_name {width:200px;float:left;}

and then
<div class="new_class_name">CODE FOR CART DIALOG</div>
<div class="new_class_name">CODE FOR HELP DIALOG</div>
<div class="clearing"></div>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
BBM_ (08-11-2010)
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:13 PM.

   

 
X-Cart forums © 2001-2020