Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2011
    Posts
    22
    Plugin Contributions
    0

    Default How do I make the weight the same on all listing when adding a product?

    My weight is the same on my items all the same- .125 and I'd like to make this a standard in the weight area when I am adding a new product so I don't have to type it in all the time. How can I do this? Thanks!

  2. #2
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,956
    Plugin Contributions
    3

    Default Re: How do I make the weight the same on all listing when adding a product?

    In your ADMIN folder on the server, you have an INCLUDES FOLDER.

    Inside that you have a MODULES FOLDER.

    Inside that you have several folders... Open the folder called PRODUCTS.

    Inside that there is a file: collect_info.php

    FTP a COPY of that file to your local machine, then open it for editing using a PLAIN TEXT EDITOR:

    Find the section (from the top) that contains:

    PHP Code:
    <?php
    /**
     * @package admin
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: collect_info.php 17947 2010-10-13 20:29:41Z drbyte $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die(
    'Illegal Access');
    }
        
    $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' => ''
                           
    );
    SEE THE LINE THAT SAYS:

    'products_weight' => '',

    EDIT IT TO LOOK LIKE THIS:

    'products_weight' => '0.125',

    SAVE the file on your hard drive.

    BEFORE you send it to the server (to REPLACE the original collect_info.php, you must RE-NAME this original file collect_info.BAK

    Then you FTP your edited copy to the same location.

    You now have a BAK-up of the original, in case you made a hash of the editing, you can revert to your backup copy, simply by changing it back to collect_info.php .
    Our latest project is Pet Tags.

  3. #3
    Join Date
    Jun 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: How do I make the weight the same on all listing when adding a product?

    That was awesome! It worked Thank You SO MUCH!!

  4. #4
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,956
    Plugin Contributions
    3

    Default Re: How do I make the weight the same on all listing when adding a product?

    Glad it worked, but "awesome" is perhaps a little strong for such a simple procedure. Neil Armstrong setting foot on the moon is "awesome".
    Our latest project is Pet Tags.

 

 

Similar Threads

  1. How do I make my product listing look like this
    By Alex123 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jun 2008, 05:18 AM
  2. Spaces between product listing images & also Weight
    By clikchic in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Oct 2006, 06:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •