Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product listing before page description?

Product listing before page description?

Locked

Views: 1,974

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
2 Oct 2007, 5:21 AM
#1
jollybeans avatar

jollybeans

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Product listing before page description?

Hi

I would like to have the Product Listing above the description of the page (at the moment the page description comes first and then the relevant products in that category are shown).

Does anyone have any ideas on how to change this.

Thanks for your help.

2 Oct 2007, 6:26 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Product listing before page description?

Post a link directly to the page you are describing

2 Oct 2007, 7:06 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Product listing before page description?

You should be creating and working with your own template and not classic as if upgraded you will loose all your edits.

Get a copy of includes/templates/template_default/templates/tpl_index_product_list.php

After editing you will place this in includes/templates/classic/templates/tpl_index_product_list.php and if the templates folder does not exist create it.

Move the lines about 84 to 107 above the description code or most likely above the

<?php
if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') {

Entry

  • save and upload as above - if you make an error just delete your edited file and start over
2 Oct 2007, 7:10 AM
#5
jollybeans avatar

jollybeans

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Re: Product listing before page description?

Thank you very much... I will give this a try and see if I can manage not to stuff it up!

Cheers

2 Oct 2007, 7:23 AM
#6
jollybeans avatar

jollybeans

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Re: Product listing before page description?

Didn't work.... this is the message I received.

Parse error: syntax error, unexpected '<' in /home/jcoull1/public_html/includes/templates/classic/templates/tpl_index_product_list.php on line 60

Any thoughts?

2 Oct 2007, 7:26 AM
#7
jollybeans avatar

jollybeans

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Re: Product listing before page description?

Sorry I have another question relating to what you said above.

You mentioned I should be using my own templates. I have copied the Classic templates and called them something else... How do I now get the site to work off the new templates?

Thanks again.

2 Oct 2007, 8:05 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Product listing before page description?

Have you edited /includes/templates/your_template/template_info.php to reflect your custom name?
Go to admin > Tools > Template Manager and you should see your new template and Classic Contemporary Green at the lower right.

8 Oct 2007, 1:50 AM
#9
jollybeans avatar

jollybeans

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Re: Product listing before page description?

Hi Glenn

Thanks, I did this and can now see my template and made it the default.

As always this created another problem... alot of the customisation I have done has gone! Is there a clean and simple way to copy an existiing template or have I created major issues for myself?

Thanks

9 Oct 2007, 2:41 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Product listing before page description?

Any files you have edited to make your custom layout can be copied to the appropriate /your_template/ subfolder, where it will be used in place of the default file.