Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default How can I set a default shipping weight?

    I know that Zencart doesn't care much about kg, oz, lb.... or what ever.
    BUT... is it possible to set a default weight so, when your store has all products one weight, you don't have to add it into every product?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I set a default shipping weight?

    You can customize the code for adding new products with a specific weight by changing the code in the file:
    /admin/includes/modules/product/collect_info.php

    NOTE: if you use various Product Types you need to update their collect_info.php file as well ...

    And in the first section of the code you will see:
    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' => ''
                           
    ); 
    Set your products_weight equal to a value instead of being blank ...

    To update all existing Products, if you need to change all to have the right weight, you can run from the Tools ... Install SQL Patches ...
    PHP Code:
    UPDATE products SET products_weight ##; 
    where ## is the weight you want to set ...

    NOTE: Backing up your database is always a good idea before doing global updates ...

    NOTE: There are no overrides in the Admin so save your original file(s) plus your changed file(s) for future upgrades ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 How can I set up multiple U.S. Shipping Zones by Weight
    By runawayd in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Sep 2013, 11:25 PM
  2. how to set maximum shipping weight?
    By denniszc in forum General Questions
    Replies: 2
    Last Post: 18 Apr 2013, 12:49 PM
  3. How to set up shipping by weight?
    By paulclane in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 17 Jan 2011, 11:08 AM
  4. How Can I Set a Flat Rate for shipping on 1 item and rest by weight ?
    By vividbreeze in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jan 2010, 05:26 AM
  5. Can I set a default shipping price?
    By ackeith in forum General Questions
    Replies: 0
    Last Post: 26 Nov 2008, 05:52 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