Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / Help with sorry,product not avail. (when out of stock)

Help with sorry,product not avail. (when out of stock)

Locked

Started by prissypups on 30 Nov 2009, 2:49 AM · Views: 818

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
30 Nov 2009, 2:49 AM
#1
prissypups avatar

prissypups

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Post #1 by prissypups

Hello
I have looked and searched with no luck. On our site items show on main page in new items. If the item is sold out, it still shows, however when you click it customer gets message, "sorry, product not found."

Can someone please guide me through settings so that even if sold out the customer can click the product, view its details but can;'t order it..just show sold out??? We want the sold out items still to be listed but just say sold out.

I would appreciate it.

thanks
Jim

30 Nov 2009, 3:25 AM
#2
sweetemotions avatar

sweetemotions

Zen Follower

Join Date:
Apr 2008
Posts:
100
Plugin Contributions:
0

Post #2 by sweetemotions

I believe you may find that under Configuration - Stock - then "Products status in Catalog when out of stock" should be set to 1. (1= leave product status ON)

30 Nov 2009, 3:55 PM
#3
bradscott avatar

bradscott

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Post #3 by bradscott

The problem is a bug in the includes\modules\new_products.php file.

The query forgot to check status, so with it added, the correct code starting at line 40, it should read:

$new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
where p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_status = 1 and p.products_id in (" . $list_of_products . ")";


Note the addition of "and p.products_status = 1" in the last line.

Brad Scott
ClermontSoftware.com