define_main_page

Locked

Started by balihr on 27 Oct 2008, 9:57 PM · Views: 2,457

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Oct 2008, 9:57 PM
#1
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,810
Plugin Contributions:
22

define_main_page

how do i change main page to show includes\languages\english\product_new.php ?

also, how to set up that my Information box - Shipping displays includes\languages\english\shipping.php instead of includes\languages\english\html_includes\clasic\define_shipping.php

i don't understand the purpose of ...\english*.php if links open ...\html_includes\clasic\define_*.php
can i avoid this and how?

also, why does "contact us" link from information box show some data i set up to show in my invoice, then from define_contact_us.php and then from contact_us.php ???

My site - Pro ZC Help
My portfolio | My plugins

27 Oct 2008, 10:19 PM
#2
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: define_main_page

how do i change main page to show includes\languages\english\product_new.php ?

looks to me like you have yet to fully understand the workings of Zen-cart .. running before walking ?
main index page calls all the seperate modules / pages when they are needed .. New products will be shown ( if configured in the admin , they are by default ) when you have products on your site , showing products with date added most recent , first.

also, how to set up that my Information box - Shipping displays includes\languages\english\shipping.php instead of includes\languages\english\html_includes\clasic\define_shipping.php

i don't understand the purpose of ...\english*.php if links open ...\html_includes\clasic\define_*.php
can i avoid this and how?

this is the core of the overides function in zen cart , you see you have your core files .. then the parts that are seperated out into your template name .. in this instance you are looking at Classic , if your template is called "swish" then your file path for overiding files in the language part would include swish in the file path.

Look up info on the overides about this. its the core to understanding
zen.

I look at Zen in four parts .. the core program ( dont mess ) the Languages , the templates and the modules.

Zen builds each page starting with the core , then loads each module as it needs it , then the templates are called for the layout of thepage , then the languages files for the content on the page.

Thats the best i can do in simplistic terms ! i might be wrong .. but i understand it !!!

Various Zen cart sites !

27 Oct 2008, 11:06 PM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,810
Plugin Contributions:
22

Re: define_main_page

OK, but since i'm not much of a programmer and have very little knowledge on php, could you PLEASE explain to me how i can do this the easiest way? i'm not trying to build some super site, i'm just trying to learn something new. and there's like a million post before, i can't seem to find what i need...

so, please, as simple as possible - how do i make the links mentioned to show what i want and not the define_***.php pages?

My site - Pro ZC Help
My portfolio | My plugins

27 Oct 2008, 11:21 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: define_main_page

What you say you want to do is not going to work correctly, at least not without a bunch of custom coding, and crazycucumber is trying to tell you the right way to achieve your functional/display goals.

If you really don't want any define page content to show up, empty the corresponding define file.

You will not see the New Products centerbox unless you have products that fit the definition of "new", as set in admin.

28 Oct 2008, 8:47 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,810
Plugin Contributions:
22

Re: define_main_page

after a good night sleep, it hit me - these define pages are actually gonna be great for what i need, if not superb... Who knows, maybe people who wrote zencart knew what they were doing... :smile: just kidding, it's great.
anyway, thanks for advice! i just know i'll have some more problems so - i'll be buck! :smile:

My site - Pro ZC Help
My portfolio | My plugins