Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default $show_info_page_ask_a_question

    The following code appeared in "Ask a Question Page" header_php.php in newest 158a release:

    Code:
    // -----
    // Check to see if the "Show Ask a Question" button is enabled for the product's
    // type.  If not, redirect to the product's information page.
    //
    $info_page = zen_get_info_page($pid);
    $show_info_page_ask_a_question = 'SHOW_' . strtoupper($info_page) . '_ASK_A_QUESTION';
    if (!defined($show_info_page_ask_a_question) || constant($show_info_page_ask_a_question) === '0') {
        zen_redirect(zen_href_link($info_page, 'products_id=' . $_GET['pid']));
    }
    I have not found, where the $show_info_page_ask_a_question variable is currently being used

    Also I cannot find, where SHOW_PRODUCT_INFO_ASK_A_QUESTION constant is defined

    But this code is actually blocking any access to "Ask a Question"-Page

    Sorry, if I do understand something wrong... (I only support my own store, I am not a pro)
    Last edited by yesaul; 6 Apr 2023 at 07:02 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,574
    Plugin Contributions
    88

    Default Re: $show_info_page_ask_a_question

    Quote Originally Posted by yesaul View Post
    The following code appeared in "Ask a Question Page" header_php.php in newest 158a release:

    Code:
    // -----
    // Check to see if the "Show Ask a Question" button is enabled for the product's
    // type.  If not, redirect to the product's information page.
    //
    $info_page = zen_get_info_page($pid);
    $show_info_page_ask_a_question = 'SHOW_' . strtoupper($info_page) . '_ASK_A_QUESTION';
    if (!defined($show_info_page_ask_a_question) || constant($show_info_page_ask_a_question) === '0') {
        zen_redirect(zen_href_link($info_page, 'products_id=' . $_GET['pid']));
    }
    I have not found, where the $show_info_page_ask_a_question variable is currently being used

    Also I cannot find, where SHOW_PRODUCT_INFO_ASK_A_QUESTION constant is defined

    But this code is actually blocking any access to "Ask a Question"-Page

    Sorry, if I do understand something wrong... (I only support my own store, I am not a pro)
    Check in the admin's Catalog :: Product Types. For the 'normal' products (that use the product_info page for their detailed display), click the Layout Settings button associated with that product type, then set the setting that enables the use of 'Ask a Question' to indicate that it's allowed.

  3. #3
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default Re: $show_info_page_ask_a_question

    Quote Originally Posted by lat9 View Post
    Check in the admin's Catalog...
    Thank you for the hint
    everything is Ok now
    My mistake
    This thread should probably be removed
    Thank you again

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR