Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / trying to customise home page with tpl_index_default.php

trying to customise home page with tpl_index_default.php

Locked

Views: 3,056

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
4 Mar 2010, 1:30 AM
#1
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

trying to customise home page with tpl_index_default.php

i want to customise the home page, i have tried to add changes to tpl_index_default.php but nothing changes, i have restored the default main_template_vars.php and trawlled through the forum posts but cant figure out why nothing is working. why would this not work?

4 Mar 2010, 2:30 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: trying to customise home page with tpl_index_default.php

How about an explanation of what you are attempting to change

4 Mar 2010, 3:14 AM
#3
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

i am wanting to add a custom image and text, below that a product slideshow.. i havent tryed to add them yet i have only tryed to add text to the tpl_index_default.php page to see if it cchnages the home page

4 Mar 2010, 3:32 AM
#4
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

i am also wanting to customise the page that shows the list of products after you click on the category name in the menu, what page would that be? (i have customised the single product page, that was easy) thanks in advance

4 Mar 2010, 10:24 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: trying to customise home page with tpl_index_default.php

I'm seeing 'test cahnges' on your main page.

Again, it may depend on what changes you want to make, but start with tpl_modules_product_listing.php

4 Mar 2010, 9:07 PM
#6
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

okay, how about i rephrase my question, if i want to customise the home page, add an image, text and flash imagery, where and how would i do that?
cheers

4 Mar 2010, 9:30 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

In the define pages editor define_main_page.php

admin >>> tools >>> define pages editor...

No need to take a chainsaw to the PHP code files.

5 Mar 2010, 2:22 AM
#8
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

okay, i will try and do it that way... but i also need to get rid of the hr line on the top of the front page..its from the breadcrumb or welcome message which i dont want but the line wont go away

5 Mar 2010, 2:24 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: trying to customise home page with tpl_index_default.php

i also need to get rid of the hr line on the top of the front page..its from the breadcrumb or welcome message
What is a "hr line"

5 Mar 2010, 3:27 AM
#10
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

sorry, i thought it was a <hr> tag but on viewing the source this is what i need to get rid of on the home page only

<h1 id="indexCategoriesHeading"></h1>
5 Mar 2010, 7:47 AM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

It looks like your mindset is still wired to "HTML"...

I had the same problem - migrating from a HTML environment to PHP - a few years ago.

You need to get your head around php and css...

6 Mar 2010, 11:49 PM
#12
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

true schoolboy, but do you know how to get rid of the heading on the home page?

7 Mar 2010, 1:53 AM
#13
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: trying to customise home page with tpl_index_default.php

We're flying blind here - what is the URL of your site?

7 Mar 2010, 6:26 AM
#14
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

i eventually found out how to do it and that was to turn off categories show on main page in admin (this is currently now turned on but the categories dont show), but when i did this the information in the define_main_page dissapeared to the url is here
http://www.water-works.com.au/catalog/index.php
for some reason i cannot get the categories to show up either, or the sub-cats as you can see here
http://www.water-works.com.au/catalog/index.php?main_page=index&cPath=1
i have replaced the tpl files for categories with the default ones as i thougtht that may have caused it... but other than that i am lost.

8 Mar 2010, 11:39 PM
#15
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

can anyone help with these categories not showing? i have just deleted everything and did a fresh install and still they dont show, even in the default theme and i really dont know what else to look at

9 Mar 2010, 11:23 AM
#16
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: trying to customise home page with tpl_index_default.php

What's your setting for the last item in Admin - Configuration - Product Listing ?

9 Mar 2010, 12:30 PM
#17
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

it was 0, so i changed it to 1 and everything works now.. thanks so much, i was going crazy with this problem i would have never have thought that setting could have caused the problem..
your help is very much appreciated!!

9 Mar 2010, 1:14 PM
#18
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

sorry i am back again... i dont want the categories to appear on the front page so i change Configuration - Layout Settings - Main Page - Opens with Category to a 0 and then the information i have entered on the define main page dissapears to and i have a blank home page????

13 Mar 2010, 4:57 AM
#19
samanthar avatar

samanthar

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: trying to customise home page with tpl_index_default.php

does anyone know the answer?
i dont want the categories to appear on the front page so i change Configuration - Layout Settings - Main Page - Opens with Category to a 0 and then the information i have entered on the define main page dissapears to and i have a blank home page pluse the subcategories dont show up on the subcategory page????