Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2011
    Posts
    20
    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
    Cumbria, UK
    Posts
    10,262
    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 .
    19 years a Zencart User

  3. #3
    Join Date
    Jun 2011
    Posts
    20
    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
    Cumbria, UK
    Posts
    10,262
    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".
    19 years a Zencart User

 

 

Similar Threads

  1. how to align buttons on the product listing page on the same horizontal line?
    By evaky in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Oct 2011, 05:14 PM
  2. Make product listing look like the all listings
    By Derek_ICD in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 May 2009, 12:42 PM
  3. How do I make all weight in Kg whatever the language is ?
    By Akasashasha in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Mar 2009, 05:03 PM
  4. How do I make the Add to cart return to the same page?
    By misspot in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jul 2007, 05:54 AM
  5. Product listing to be the same as All Products
    By GR8TEC in forum Basic Configuration
    Replies: 0
    Last Post: 20 Mar 2007, 07:50 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR