Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default default "1" product is virtual

    I changed the default value of Product is virtual from 0 to 1 and the radio button still comes up non virtual. What am I doing wrong?

  2. #2
    Join Date
    Jun 2006
    Posts
    157
    Plugin Contributions
    0

    Default Re: default "1" product is virtual

    What product type did you change this on?

    Is this happening incorrectly on a new product or when you edit an existing product?

  3. #3
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: default "1" product is virtual

    Quote Originally Posted by Justmetoo View Post
    What product type did you change this on?

    Is this happening incorrectly on a new product or when you edit an existing product?
    I changed it in the database for all future new products. I just thought it would save me sometime if I had it defaulted to virtual product no shipping.

    I did the same for show discount quantities radio button, changed it from 0 to 1 in database structure table.

  4. #4
    Join Date
    Jun 2006
    Posts
    157
    Plugin Contributions
    0

    Default Re: default "1" product is virtual

    I believe that this is managed by a setting in the product type configuration for each product type.

    Look under the edit layout button and you will see:
    Product Virtual Default Status - Skip Shipping Address - When adding new products?
    Default Virtual Product status to be ON when adding new products?
    That would appear to override anything in the database structure as looking at the collect_info.php file is using it:
    PHP Code:
        $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' => '',
                           
    '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' => ''
                           
    ); 

  5. #5
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: default "1" product is virtual

    I had a hard time finding that file collect_info.php. Since I renamed admin to something else, it never showed up in the developer tool kit search results......but I digress.

    Here is something to look at.



    BTW what is [scr] tag for?







    I looked in collectinfo and under virtual paragraph it set default to:

    // Virtual Products
    if (!isset($pInfo->products_virtual)) $pInfo->products_virtual = PRODUCTS_VIRTUAL_DEFAULT;
    switch ($pInfo->products_virtual) {
    case '0': $is_virtual = false; $not_virtual = true; break;
    case '1': $is_virtual = true; $not_virtual = false; break;
    default: $is_virtual = false; $not_virtual = false;
    Last edited by pixelpadre; 24 Jun 2008 at 01:54 PM.

  6. #6
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: default "1" product is virtual

    // Virtual Products
    if (!isset($pInfo->products_virtual)) $pInfo->products_virtual = PRODUCTS_VIRTUAL_DEFAULT;
    switch (
    $pInfo->products_virtual) {
    case
    '0': $is_virtual = false; $not_virtual = true; break;
    case
    '1': $is_virtual = true; $not_virtual = false; break;
    default:
    $is_virtual = true; $not_virtual = false;

    default line above should reflect case 1. I corrected it but still no change in product listing.

 

 

Similar Threads

  1. Changing "Default Order Status" from "Delivered" to "Shipped"
    By CookieMonster in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Nov 2014, 12:22 AM
  2. v150 How do I edit Product Listing "Price", "Qty." and Product Info Move "details"?
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Jan 2013, 01:02 AM
  3. Need to change the default quanity for "each" to "Set" on certain products
    By whiskermouse in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Apr 2010, 02:46 AM
  4. Replies: 0
    Last Post: 27 May 2009, 06:59 PM
  5. Replies: 3
    Last Post: 18 Jan 2009, 06:20 AM

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