Forums / Templates, Stylesheets, Page Layout / skip category main page with first sub-category

skip category main page with first sub-category

Locked

Started by roboto on 25 Aug 2007, 11:53 PM · Views: 1,411

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Aug 2007, 11:53 PM
#1
roboto avatar

roboto

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

skip category main page with first sub-category

Hi people :)

I have a problem with sub-category listing. have categories like this:

snowboards

boards
>> brand 1
>> brand 2

so what i need is to show directly the first sub-category when a main category is clicked. so, if i click on "snowboards" i would like to show the "boards" page as default.

how can i do that?

27 Aug 2007, 9:19 AM
#2
roboto avatar

roboto

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: skip category main page with first sub-category

UP!

Hey, this is the second post where i am asking for help and for the second time i don't get any answer... am I invisible or what???

there's a way to hardcode links to categories??

27 Aug 2007, 1:28 PM
#3
roboto avatar

roboto

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: skip category main page with first sub-category

ok, nobody answer.
i've done what i wanted to do using mod_rewrite from apache. no zen-cart's code to touch.

in .htaccess file write:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=10$
RewriteRule index.php index.php?main_page=index&cPath=10_11 [R=301,L]

change the cPath according to what you want to display/rewrite

p.s.
this forum sucks