Forums / Templates, Stylesheets, Page Layout / Main page displaying in categories for some reaosn

Main page displaying in categories for some reaosn

Views: 433

Results 1 to 3 of 3
18 Oct 2011, 1:40 PM
#1
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Main page displaying in categories for some reaosn

Hi there

If you go here:
http://pcselect.co.za/index.php?main_page=index&cPath=4

You will see that some parts of the main page are displaying on every product category.

Why is this happened?

Thanks for your help.

Kind regards
S

18 Oct 2011, 2:13 PM
#2
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Main page displaying in categories for some reaosn

SethF:

Hi there

If you go here:
http://pcselect.co.za/index.php?main_page=index&cPath=4

You will see that some parts of the main page are displaying on every product category.

Why is this happened?

Thanks for your help.

Kind regards
S

Fixed it.

tpl_index_categories.php in template_default was set to enable it.

20 Feb 2012, 8:45 PM
#3
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Main page displaying in categories for some reaosn

Sorry to re-open this thread, but thought it may help others in the future.

This problem is caused by installing the FAQ module.

You can resolve is (not sure about the consequences of this) by adding this section of code to /includes/open-operations/faq_application_top.php

Just overwrite the code from line 39 - 52 with that

// calculate faq_category path
  if (isset($_GET['fcPath'])) {
    $fcPath = $_GET['fcPath'];
  } elseif (isset($_GET['faqs_id']) && !zen_check_url_get_terms()) {
    $fcPath = zen_get_faq_path($_GET['faqs_id']);
  } else {
    if (SHOW_FAQ_CATEGORIES_ALWAYS == '1' && !zen_check_url_get_terms()) {
      //$show_welcome = 'true';
      $fcPath = (defined('FAQ_CATEGORIES_START_MAIN') ? FAQ_CATEGORIES_START_MAIN : '');
    } else {
      //$show_welcome = 'false';
      $fcPath = '';
    }
  }

Hope this helps
S