X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Custom Homepage (https://forum.x-cart.com/showthread.php?t=59075)

WSUSA 04-26-2011 08:28 AM

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.

cflsystems 04-26-2011 09:05 AM

Re: Custom Homepage
 
skin/your_skin/customer/main/welcome.tpl controls home page

WSUSA 04-26-2011 09:16 AM

Re: Custom Homepage
 
Thanks.. Now, how do I remove the left bar from just the homepage?

cflsystems 04-26-2011 09:24 AM

Re: Custom Homepage
 
surround it with
{if $main eq "catalog" && $current_category.category eq ""}
LEFT BAR CODE HERE
{/if}

WSUSA 04-26-2011 09:39 AM

Re: Custom Homepage
 
I am using 2-columns skin.. In what file would I insert the code?

cherie 04-26-2011 01:34 PM

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 "")}

WSUSA 04-27-2011 06:06 AM

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

cflsystems 04-27-2011 10:18 AM

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

WSUSA 04-27-2011 10:20 AM

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

cflsystems 04-27-2011 10:22 AM

Re: Custom Homepage
 
It is there in one of the css files. Use Firebug (FF) to find out exactly which one


All times are GMT -8. The time now is 01:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.