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

Custom Homepage

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-26-2011, 08:28 AM
 
WSUSA WSUSA is offline
 

Member
  
Join Date: Mar 2011
Posts: 24
 

Question Custom Homepage

I need to make the homepage on x-cart different from the rest of the pages. I would like to keep just the header and footer, and insert my own content in the main area.
__________________
X-CART GOLD 4.4.X
Reply With Quote
  #2  
Old 04-26-2011, 09:05 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Custom Homepage

skin/your_skin/customer/main/welcome.tpl controls home page
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Steel (10-15-2011)
  #3  
Old 04-26-2011, 09:16 AM
 
WSUSA WSUSA is offline
 

Member
  
Join Date: Mar 2011
Posts: 24
 

Default Re: Custom Homepage

Thanks.. Now, how do I remove the left bar from just the homepage?
__________________
X-CART GOLD 4.4.X
Reply With Quote
  #4  
Old 04-26-2011, 09:24 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Custom Homepage

surround it with
{if $main eq "catalog" && $current_category.category eq ""}
LEFT BAR CODE HERE
{/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Steel (10-15-2011)
  #5  
Old 04-26-2011, 09:39 AM
 
WSUSA WSUSA is offline
 

Member
  
Join Date: Mar 2011
Posts: 24
 

Default Re: Custom Homepage

I am using 2-columns skin.. In what file would I insert the code?
__________________
X-CART GOLD 4.4.X
Reply With Quote
  #6  
Old 04-26-2011, 01:34 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Custom Homepage

That is in common_files/customer/content.tpl. You would want to copy that to the same place in 2-columns then make the changes there. There is already code surrounding the left-bar to prevent it from appearing in the cart and checkout. I think you'd want to add a "not" around the above code so you'd end up with something like this:

{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and not ($main eq "catalog" and $current_category.category eq "")}
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
Steel (10-15-2011)
  #7  
Old 04-27-2011, 06:06 AM
 
WSUSA WSUSA is offline
 

Member
  
Join Date: Mar 2011
Posts: 24
 

Default Re: Custom Homepage

We are getting closer.. Thanks!!

Now, how do I eliminate the space where the left bar was?

http://69.175.10.138/~totalvoi/store/home.php
__________________
X-CART GOLD 4.4.X
Reply With Quote
  #8  
Old 04-27-2011, 10:18 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Custom Homepage

It's all in the css classes. There are probably margins/paddings you need to eliminate so the center part takes all the space
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 04-27-2011, 10:20 AM
 
WSUSA WSUSA is offline
 

Member
  
Join Date: Mar 2011
Posts: 24
 

Default Re: Custom Homepage

I can't find it anywhere in the altskin.css or main.css. The margin on the left of center is exactly 250px. I went through both css files and changed anything that said 250px, nothing changed.

Does anyone have any ideas?

The cart.php page is also having the same issues?

http://69.175.10.138/~totalvoi/store/cart.php
__________________
X-CART GOLD 4.4.X
Reply With Quote
  #10  
Old 04-27-2011, 10:22 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Custom Homepage

It is there in one of the css files. Use Firebug (FF) to find out exactly which one
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 09:40 AM.

   

 
X-Cart forums © 2001-2020