Zen Cart Logo
Forums / General Questions / Product flag

Product flag

Locked

Views: 937

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
1 Jul 2010, 8:52 AM
#1
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Product flag

I have a programmer working on a deactivation mod for products by manufacturer, The mod works except in New Products for July, featured, special meaning the products of the deactivated manufacturer still appear in those area's. are more than 1 flag controlling the status of any product? if so where.

1 Jul 2010, 9:01 AM
#2
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

rxalex:

I have a programmer working on a deactivation mod for products by manufacturer, The mod works except in New Products for July, featured, special meaning the products of the deactivated manufacturer still appear in those area's. are more than 1 flag controlling the status of any product? if so where.
area's when you go into a specific category but if you click on the item it says Sorry, the product was not found

2 Jul 2010, 3:52 PM
#3
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

Can someone help please

2 Jul 2010, 4:37 PM
#5
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

Thanks doc, I am using 1.3.9d for this shop - I think you guys updated the reference in this new version. Can it be something else?

2 Jul 2010, 4:45 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Product flag

There is only one place to deactivate a product: the products_status field.
If it's showing up in your admin with a red dot, then when you edit the product it'll also show up as "not in stock" (radio button). Both are indicators that the products_status field is set to 0.
And, when that field is set to 0, the product doesn't show up in the storefront ... unless you're using addons or old code that ignore that setting.

2 Jul 2010, 5:08 PM
#7
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

Thank you, can you please give me a little more information where should the coder look as the products do not show otherwise unless you go to a category that the deactivated products are in they show in new products for July.

Appreciate your help

Can it be a cache issue?

2 Jul 2010, 6:08 PM
#8
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

looks like a zencart issue, it only occurs in the category (Show New Products - below Product Listing) otherwise on the main page all products are do not show that are deactivated

2 Jul 2010, 9:05 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Product flag

I just tested on a brand new clean install of v1.3.9d, and added the demo products, and browsed down to cPath=3_10 where there are several products. I then went into the Admin area and marked 3 of those products as Out of Stock (red dot). When I go back into the store under cPath=3_10, those 3 products I marked as out-of-stock no longer show in the New Products for July section, and of course they don't show in the product listing above either.
I even added some brand new categories with multiple levels, and disabled some products in the bottom level, and the disabled products properly disappear from the New Products centerbox.

The problem is not "a zencart issue".
It's a problem with the custom code you're using to display your customized New Products centerbox section, which is pulling products from the parent category (above the current one) regardless of status, unlike the built-in original New Products box which pulls only enabled products from only subcats below the current one.

3 Jul 2010, 7:14 PM
#10
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Product flag

Thank you for your help DrByte, the link you gave helped, your correct about the old code being there - it was in the template file and your fix from the link helped ... I apologize for the confusion and Appreciate all your hard work and help.