Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Idea or Suggestion Show Shipping Weights for Items

    It there a way to show or enable the ability to see the shipping weights for items in the admin side of the catalog without having to click edit?

    Thanks
    Bor

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

    Default Re: Show Shipping Weights for Items

    You would need to customize the admin module:
    category_product_listing.php

    add the
    p.products_weight

    to the two select statements and then you can call it and display it on the listing with:
    $products->fields['products_weight']
    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!

  3. #3
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    help question Re: Show Shipping Weights for Items

    I see around line 239:
    $products_query_raw = ("select p.products_weight ...
    } else {
    $products_query_raw = ("select p.products_weight ...

    Where do I place $products->fields['products_weight']

    Is this the correct location for

    // Split Page
    ?>
    <td class="dataTableContent" width="20" align="right"><?php echo $products->fields['products_id']; ?></td>
    <td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product_preview&read=only' . '&product_type=' . $products->fields['products_type'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $products->fields['products_name']; ?></td>
    <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
    <td class="dataTableContent"><?php echo $products->fields['products_weight']; ?></td>
    <td colspan="2" class="dataTableContent" align="right"><?php echo zen_get_products_display_price($products->fields['products_id']); ?></td>
    <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>
    <td class="dataTableContent" width="50" align="left">

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

    Default Re: Show Shipping Weights for Items

    Are you now seeing the products_weight on the listing?
    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!

  5. #5
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Default Re: Show Shipping Weights for Items

    No its not showing up

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

    Default Re: Show Shipping Weights for Items

    That is odd ... I am having no problem making that show up with the p.products_weight added to the two select statements then echoing it in the listing ...

    Try reloading your new custom file and make sure that it does update on the server ...
    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!

  7. #7
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Default Re: Show Shipping Weights for Items



    I hope you dont mind taking a peek Linda

    Thanks in advance

  8. #8
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Default Re: Show Shipping Weights for Items

    Well I cant attach it hehe

  9. #9
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Default Re: Show Shipping Weights for Items

    Is there somewhere else I have to put it?

    $products_query_raw = ("select p.products_weight, p.products_type, p.products_id, pd.products_name, p.products_quantity,
    p.products_image, p.products_price, p.products_date_added,
    p.products_last_modified, p.products_date_available,
    p.products_status, p2c.categories_id,
    p.products_model,
    p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
    p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
    p.products_quantity_order_max, p.products_sort_order,
    p.master_categories_id
    from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, "
    . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
    where p.products_id = pd.products_id
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and (p.products_id = p2c.products_id
    and p.master_categories_id = p2c.categories_id)
    and (
    pd.products_name like '%" . zen_db_input($_GET['search']) . "%'
    or pd.products_description like '%" . zen_db_input($_GET['search']) . "%'
    or p.products_model like '%" . zen_db_input($_GET['search']) . "%')" .
    $order_by);

    } else {
    $products_query_raw = ("select p.products_weight, p.products_type, p.products_id, pd.products_name, p.products_quantity,
    p.products_image, p.products_price, p.products_date_added,
    p.products_last_modified, p.products_date_available,
    p.products_status, p.products_model,
    p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
    p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
    p.products_quantity_order_max, p.products_sort_order
    from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
    where p.products_id = pd.products_id
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and p.products_id = p2c.products_id
    and p2c.categories_id = '" . (int)$current_category_id . "'" .
    $order_by);
    }


    // Split Page
    ?>
    <td class="dataTableContent" width="20" align="right"><?php echo $products->fields['products_id']; ?></td>
    <td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product_preview&read=only' . '&product_type=' . $products->fields['products_type'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $products->fields['products_name']; ?></td>
    <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
    <td class="dataTableContent"><?php echo $products->fields['products_weight']; ?></td>
    <td colspan="2" class="dataTableContent" align="right"><?php echo zen_get_products_display_price($products->fields['products_id']); ?></td>
    <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>
    <td class="dataTableContent" width="50" align="left">
    <?php

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

    Default Re: Show Shipping Weights for Items

    I have the same, more or less, on what you did:
    PHP Code:
          $products_query_raw = ("select p.products_type, p.products_id, pd.products_name, p.products_quantity,
                                           p.products_image, p.products_price, p.products_date_added,
                                           p.products_last_modified, p.products_date_available,
                                           p.products_status, p2c.categories_id,
                                           p.products_model, p.products_weight,
                                           p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
                                           p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
                                           p.products_quantity_order_max, p.products_sort_order,
                                           p.master_categories_id
                                    from " 
    TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd, "
                                           
    TABLE_PRODUCTS_TO_CATEGORIES " p2c
                                    where p.products_id = pd.products_id
                                    and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "'
                                    and (p.products_id = p2c.products_id
                                    and p.master_categories_id = p2c.categories_id)
                                    and (
                                    pd.products_name like '%" 
    zen_db_input($_GET['search']) . "%'
                                    or pd.products_description like '%" 
    zen_db_input($_GET['search']) . "%'
                                    or p.products_model like '%" 
    zen_db_input($_GET['search']) . "%')" .
                                    
    $order_by);

        } else {
          
    $products_query_raw = ("select p.products_type, p.products_id, pd.products_name, p.products_quantity,
                                           p.products_image, p.products_price, p.products_date_added,
                                           p.products_last_modified, p.products_date_available,
                                           p.products_status, p.products_model, p.products_weight,
                                           p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
                                           p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
                                           p.products_quantity_order_max, p.products_sort_order
                                    from " 
    TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd, " TABLE_PRODUCTS_TO_CATEGORIES " p2c
                                    where p.products_id = pd.products_id
                                    and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "'
                                    and p.products_id = p2c.products_id
                                    and p2c.categories_id = '" 
    . (int)$current_category_id "'" .
                                    
    $order_by);
        }
    // Split Page 
    And I just tossed the reference to the products_weight with xxx in there to see it:
    PHP Code:
    // Split Page
    ?>
                    <td class="dataTableContent" width="20" align="right"><?php echo $products->fields['products_weight'] . 'xxx' $products->fields['products_id']; ?></td>
                    <td class="dataTableContent"><?php echo '<a href="' zen_href_link(FILENAME_PRODUCT'cPath=' $cPath '&pID=' $products->fields['products_id'] . '&action=new_product_preview&read=only' '&product_type=' $products->fields['products_type'] . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image(DIR_WS_ICONS 'preview.gif'ICON_PREVIEW) . '</a>&nbsp;' $products->fields['products_name']; ?></td>
                    <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
                    <td colspan="2" class="dataTableContent" align="right"><?php echo zen_get_products_display_price($products->fields['products_id']); ?></td>
                    <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>
                    <td class="dataTableContent" width="50" align="left">
    I am not really seeing any differences ...
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Repeating Base Weights for Main Shipping Boxes
    By kclover in forum Built-in Shipping and Payment Modules
    Replies: 47
    Last Post: 4 Dec 2013, 07:57 PM
  2. Setting up shipping costs for different weights
    By Quorthon in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 9 Feb 2012, 09:23 PM
  3. Removing weights for shipping methods -Royal Mail
    By Shazmahaz in forum Addon Shipping Modules
    Replies: 0
    Last Post: 22 Jan 2010, 05:36 PM
  4. Only shipping SOME items...and shipping charges for multiple items
    By TeamTJ in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 1 Nov 2007, 03:16 PM
  5. Help customising/choosing shipping for multiple zones/weights
    By dandownunder in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Jul 2006, 07:24 PM

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