Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / New Product default setting as disabled

New Product default setting as disabled

Locked

Views: 1,122

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
31 Aug 2008, 4:02 AM
#1
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

New Product default setting as disabled

Hi Guys,
Is there a way to set the default status of new products to disabled? I can do it using stock levels or by changing the availability date, but I was curious if there was an easier way,
Thanks!

31 Aug 2008, 4:24 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Product default setting as disabled

Other than clicking the Radion Button next to:
Products Status: Out of Stock

you could customize the module file (be aware of product types):
collect_info.php

    $parameters = array('products_name' => '',
                       'products_description' => '',
                       'products_url' => '',
                       'products_id' => '',
                       'products_quantity' => '',
                       'products_model' => '',
                       'products_image' => '',
                       'products_price' => '',
                       'products_virtual' => DEFAULT_PRODUCT_PRODUCTS_VIRTUAL,
                       'products_weight' => '',
                       'products_date_added' => '',
                       'products_last_modified' => '',
                       'products_date_available' => '',
                       'products_status' => '0',
                       'products_tax_class_id' => DEFAULT_PRODUCT_TAX_CLASS_ID,
                       'manufacturers_id' => '',
                       'products_quantity_order_min' => '',
                       'products_quantity_order_units' => '',
                       'products_priced_by_attribute' => '',
                       'product_is_free' => '',
                       'product_is_call' => '',
                       'products_quantity_mixed' => '',
                       'product_is_always_free_shipping' => DEFAULT_PRODUCT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING,
                       'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS,
                       'products_quantity_order_max' => '0',
                       'products_sort_order' => '0',
                       'products_discount_type' => '0',
                       'products_discount_type_from' => '0',
                       'products_price_sorter' => '0',
                       'master_categories_id' => ''
                       );
1 Sep 2008, 3:22 AM
#3
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Re: New Product default setting as disabled

altering the collect_info file worked great - thanks!

1 Sep 2008, 3:39 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Product default setting as disabled

NOTE that will get destroyed ... er ... overwritten on an upgrade so be sure to save a copy for next time or, better yet, add it to your Notes on how to upgrade and things to do ... :cool: