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)
-   -   news.tpl help needed (https://forum.x-cart.com/showthread.php?t=4953)

miker 10-26-2003 12:20 PM

news.tpl help needed
 
I have added the following code into my home.tpl in hopes of makeins news only show up on the main page, and not sub pages...

{if $location eq "" }{include file="news.tpl"}{/if}

Well, this worked like 90% of the time, every page (except for the front page) the news is gone, except for the shopping cart, it comes back. Any ideas?

funkydunk 10-28-2003 10:08 PM

Code:

{if $main eq "catalog" and $cat eq "" }{include file="news.tpl"}{/if}

home_main.tpl is a good pointer for this kind of thing

hth

jeeya 10-28-2003 10:37 PM

.
 
It would be sooo good if just make news tpl catagorywise.

Do ya think this will work

if catagory -----
include "news1.tpl


and just go up.

But what should I enter where it says catagory " " , Catagory name or Number?

Thanks.

funkydunk 10-28-2003 10:51 PM

{if $cat eq "123"}

{/if}

jeeya 10-29-2003 12:11 AM

.
 
Great. done. Thanks.
I will add up some more in home_main.tpl

Thanks.

jeeya 10-29-2003 12:40 AM

.
 
forgot, I have to xcart folders in http and https. I use ssl to accept payments only. Do I really need to make changes in xcart folder which is in https for whatever templates I added in xcart folder which is in http.

funkydunk 10-29-2003 01:31 AM

you have that posted in another thread - will stick to the topic.

jeeya 10-29-2003 02:12 AM

.
 
ok :)


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

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