Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Problem for missing product page

    setting:
    Configuration -> Define Page Status ->Missing Page Check-->On
    Configuration ->Index Listing ->Show New Products on Main Page - Errors and Missing Products Page ->2
    ->Show Featured Products on Main Page - Errors and Missing Products Page -> 1

    Problem:
    On the product information page, set the url to point to a product that does not exist (id does not exist). First, page didn't been redirected to home page. Second, there are no new products or featured products been shown on the page.

    Click image for larger version. 

Name:	temp.png 
Views:	149 
Size:	11.7 KB 
ID:	12882

    I may misunderstand the configuration items. Any help would be appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Problem for missing product page

    The "missing page check" only checks for invalid main_page=xyz values (where xyz isn't a valid page in the site). It has nothing to do with merely supplying an invalid product id number.

    An invalid product-id only displays the message you stated, after first issuing a 404-not-found header so search engines know to de-list the invalid product id from their database.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Problem for missing product page

    Thank DrBtye

    Does it means that the setting of "Show New Products on Main Page - Errors and Missing Products Page" is for home page only?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Problem for missing product page

    Quote Originally Posted by su35 View Post
    Does it means that the setting of "Show New Products on Main Page - Errors and Missing Products Page" is for home page only?
    Yes: "on Main Page" also means "on Home Page only".
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Problem for missing product page

    I have just added two statements in tpl_product_info_noproduct.php to show info on screen. The result suggests that the "Show New Products on Main Page - Errors and Missing Products Page" would work with missing products page.
    Code:
    <?php
    //// bof: missing
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MISSING);
    
    var_dump($show_display_category);
    
    while (!$show_display_category->EOF) {
    ?>
    
    ......
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') {
     echo "show new products";
    /**
     * display the new product center box
     */
        include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS));
      }
    ?>
    Click image for larger version. 

Name:	temp.jpg 
Views:	41 
Size:	40.7 KB 
ID:	12883

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Problem for missing product page


  7. #7
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Problem for missing product page

    Thanks lat9

 

 

Similar Threads

  1. Replies: 5
    Last Post: 31 Jan 2015, 10:57 PM
  2. Missing Right Side Bar and bottom of Page on product info page
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jul 2012, 05:30 PM
  3. [problem]index page, new product for this month
    By kitkitng in forum General Questions
    Replies: 2
    Last Post: 8 Jul 2011, 06:18 PM
  4. Missing product name & product price from Product Info Page
    By kpatterson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Feb 2011, 03:11 AM
  5. Replies: 0
    Last Post: 15 Dec 2008, 06:26 AM

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