Zen Cart Logo

Need a little help

Locked

Views: 1,424

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Apr 2009, 5:04 PM
#1
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Need a little help

hi,
How do i Move the define_main_page.php text on the main page to the bottom of the site so that products would appear above the text instead of below it??
I seen it somewhere before on the forums but i cant find it again,
i know its something simple to move a certain bit of code.
thanx

8 Apr 2009, 5:09 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Need a little help

Ajaysports:

hi,
How do i Move the define_main_page.php text on the main page to the bottom of the site so that products would appear above the text instead of below it??
I seen it somewhere before on the forums but i cant find it again,
i know its something simple to move a certain bit of code.
thanx

Aj,
I don't know if this helps you out, please read:

https://www.zen-cart.com/forum/showthread.php?t=56174

8 Apr 2009, 5:16 PM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Need a little help

override your tpl_index_default.php

then open the override version in text editor .
starting at line 34 to line 40
move this codes to the end of file just before closing </div>tag

<?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?>

this will show the main page define at the bottom of the page under any center products that is being displayed .

8 Apr 2009, 5:41 PM
#4
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Need a little help

it doesnt seem to be workin for me,
on the main page i have featured products in the centre only
but moving the main_page code to the bottom of the index_default
doesnt seem to be movin it,
i know the overides workin because the second time i tried it
i missed a bit of code and messed up the site
ty

8 Apr 2009, 5:46 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Need a little help

<?php $show_display_category->MoveNext(); } // !EOF ?> </div>

make sure the code inserted in between ?> </div> and not above or bellow.

it should actually work as this only moving a div location ..

8 Apr 2009, 5:48 PM
#6
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Need a little help

i'll try lata as ive gota go,
i'll let u know how it goes
thanx

8 Apr 2009, 9:44 PM
#7
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Need a little help

nope,
i still cant get it to move, i know it should
because movin that code sounds obvious to me,
the only thing that i can see is that my code is slightly
different to yours, its:

<?php /** * get the Define Main Page Text */ ?> <!--<div id="indexDefaultMainContent" class="content"><?php //require($define_page); ?></div>--> <?php //} ?>

when i cut my code out completely and put yours in at
the bottom it crashes my front page

8 Apr 2009, 10:29 PM
#8
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Need a little help

Ajaysports:

nope,
i still cant get it to move, i know it should
because movin that code sounds obvious to me,
the only thing that i can see is that my code is slightly
different to yours, its:

<?php /** * get the Define Main Page Text */ ?>

<!--<div id="indexDefaultMainContent" class="content"><?php //require($define_page); ?></div>-->

<?php //} ?>

when i cut my code out completely and put yours in at
the bottom it crashes my front page

your know your code is been commented out ???remove

<!-- and --> and //

if your page crashes .. then there is something fishy about that page .. has it been altered before ?? what template are you using ? is it Template Monster ???

8 Apr 2009, 10:51 PM
#9
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Need a little help

yea,
when i put the code in uncommented at the bottom,
i lose the right side boxes, i lose the catogories boxes and i lose
the main page colour background and the centre moves over
to the right of the page slightly, and the define page text is still there,
i got 5 templates with my package, called football 1-5
and im using football 3.

8 Apr 2009, 11:28 PM
#10
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Need a little help

if thats TM , then i don't think anyone will be able to help you but them , or you have to really dig into the code and find what they have done to the files.

they commented the code that shows main define page . so i guess they have added their own code. so , i guess i have to say , good luck . :blush:

8 Apr 2009, 11:31 PM
#11
ajaysports avatar

ajaysports

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Re: Need a little help

lol,
owell i guess i'll just have to work with it,
they'd probably try and charge me a fortune for them
to customise that part,
i'll probably have a look through anyway.
Thanx anyways