Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Plugin Contributions
    0

    Default Packing Slip - Adding Manufacturer

    I'm a complete novice who has only written in HTML before, but from reading the posts on this forum have managed to set up an online shop that is better than I imagined I could achieve. I do have one problem...

    I would like to add the manufacturers name to my packing slip (as I have the same product made by different people). How can I do this? I have managed to add the shipping method and customer comments, but can't work out how to add in the manufacturer. I imagine I need to join in another table as this isn't in the same table as the other info that appears on this page. help!

    I am using 1.3.5.

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

    Default Re: Packing Slip - Adding Manufacturer

    NOTE: it is strongly recommended that you upgrade to v1.3.6 ...

    The Manufactuer's information is not stored with the product on the orders_products table ... however, you can pick up the manufactuers_name via a function call ...

    There is a function in the:
    /includes/functions/functions_lookups.php
    PHP Code:
    /*
     * Return a product's manufacturer's name, from ID
     * TABLES: products, manufacturers
     */
      
    function zen_get_products_manufacturers_name($product_id) {
        global 
    $db;

        
    $product_query "select m.manufacturers_name
                          from " 
    TABLE_PRODUCTS " p, " .
                                
    TABLE_MANUFACTURERS " m
                          where p.products_id = '" 
    . (int)$product_id "'
                          and p.manufacturers_id = m.manufacturers_id"
    ;

        
    $product =$db->Execute($product_query);

        return (
    $product->RecordCount() > 0) ? $product->fields['manufacturers_name'] : "";
      } 
    This could be added to the:
    /admin/includes/functions/extra_functions

    directory in your own file to use in the Admin ...
    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. v155 Problem Adding Data to Packing Slip
    By dbltoe in forum Customization from the Admin
    Replies: 2
    Last Post: 8 Aug 2016, 11:04 PM
  2. v153 Adding my Banners to my Packing Slip and Invoice
    By seanscully in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Nov 2014, 10:24 PM
  3. v139h Adding Manufacturers_id to Invoice/packing Slip
    By NickyCarroll in forum Customization from the Admin
    Replies: 3
    Last Post: 25 Apr 2012, 10:44 PM
  4. Adding a line of text to packing slip
    By Big_Woody in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 31 Oct 2007, 10:16 PM
  5. Adding my comments to a packing slip?
    By HandcraftedUK in forum Managing Customers and Orders
    Replies: 4
    Last Post: 2 May 2007, 09:30 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