Forums / Templates, Stylesheets, Page Layout / which is the category page in the ftp files?

which is the category page in the ftp files?

Views: 1,465

Results 1 to 7 of 7
18 Mar 2011, 9:42 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: which is the category page in the ftp files?

Zencart is a dynamic PHP-driven program, so most of the pages you see don't actually exist as such, but are built from other files as necessary. You can look at the URL for clues. That page should contain subcategory or product information from the category with the id 64.

What exactly do you need to do ?

18 Mar 2011, 10:59 AM
#3
abhishek1711 avatar

abhishek1711

New Zenner

Join Date:
Mar 2011
Posts:
12
Plugin Contributions:
0

Re: which is the category page in the ftp files?

yeah so every product on the site has sub-product pages which list all the products under that cateogry

i want to edit the design of this type of page

http://www.fetise.com/men/index.php?main_page=index&cPath=65

http://www.fetise.com/men/index.php?main_page=index&cPath=66

have attached a screenshot of this page too

just unable to find from where to edit these pages!

18 Mar 2011, 12:03 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: which is the category page in the ftp files?

You'll have to be a little more specific about what you want to accomplish. A lot of the look of Zen Cart is controlled by the stylesheets. Other elements may be controlled by content of various php files.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Mar 2011, 12:10 PM
#5
abhishek1711 avatar

abhishek1711

New Zenner

Join Date:
Mar 2011
Posts:
12
Plugin Contributions:
0

Re: which is the category page in the ftp files?

like i said i want to change the design of this page and also remove the share sale on twitter/facebook from this page

have searched all the files on the /include/templates folders - no clue where this page is pulling the content/design/data from.....

18 Mar 2011, 1:38 PM
#6
stevesh avatar

stevesh

Black Belt

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

Re: which is the category page in the ftp files?

You're in for a lot of work, as the template designer has added a lot of stuff that isn't in a stock Zencart site, so:

Install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. An essential tool.

Some prefer Firebug, which does much the same thing.

Then, when you've found the id or class of the element you want to change,

https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

to find the proper file.

Most layout changes will be done by editing template files, most of which begin with tpl_ .

18 Mar 2011, 1:45 PM
#7
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: which is the category page in the ftp files?

abhishek1711:

like i said i want to change the design of this page and also remove the share sale on twitter/facebook from this page

have searched all the files on the /include/templates folders - no clue where this page is pulling the content/design/data from.....

The first thing you ask for should be easy -- if you have two things on your local hard drive: a full copy of the site files as they exist now, and a full copy of the same version of Zen Cart unmodified. (You don't need to run them locally on a web server; you just need the files.)

Using a (programmer's) text editor and my browser I see that the Share Sale thing is inside three DIVs, like this...

<div class="FR MT15"> <div class="share_bx1"> <p class="gl_12">

Search for each of those div class names in the site files. When you've identified which php file(s) has been modified, open it and the unmodified version of the same file and do a file compare. That should show you exactly how the file was modified so you can undo it.

Other changes you want to make, especially those involving appearance, should be doable through the stylesheets, as mentioned above. But check for in-line styles too; many people in a hurry find it easier to insert in-line styles than to figure out how to use the stylesheets.

And you may also need to use the admin to make changes to page elements -- such as whether and where sideboxes appear and in what order. And of course, you can edit content in the admin.

Rob

Breakfast: the most important donut of the day.