Zen Cart Logo
Forums / Basic Configuration / Problem for missing product page

Problem for missing product page

Views: 2,125

Results 1 to 7 of 7
12 Aug 2013, 3:44 AM
#1
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

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.

Attachment 12882

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

12 Aug 2013, 4:00 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

12 Aug 2013, 2:02 PM
#3
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

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?

12 Aug 2013, 2:36 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Problem for missing product page

su35:

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".

12 Aug 2013, 2:42 PM
#5
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

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.

<?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));
  }
?>

Attachment 12883

12 Aug 2013, 6:38 PM
#7
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Problem for missing product page

Thanks lat9