Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    26
    Plugin Contributions
    0

    Default Adding Manufacturers_id to Invoice/packing Slip

    I'd like to add manufacturers id onto the invoice/packing slip to create a unique product code along with the Product table product id. I've managed to add the product id bit, but have come unstuck with the manufacturers id as this is not in the orders table. Any suggestions?

    ' <td class="dataTableContent" valign="top" align="left">' . $order->products[$i]['id'] . '</td>' . "\n" .

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

    Default Re: Adding Manufacturers_id to Invoice/packing Slip

    You will need to do a look up on the manufactuers_id as it is not stored on the Order with something like:
    Code:
    $chk_manufacturers_id = zen_products_lookup($order->products[$i]['id'], 'manufacturers_id');
    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: v1.5.5]
    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
    Oct 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Adding Manufacturers_id to Invoice/packing Slip

    Forgive me, but my knowledge is limited. I added the code you suggested and the following line for the input into the table on the invoice.php

    ' <td class="dataTableContent" valign="top" align="left">' . $products->manufacturers[$i]['id']. ''. "\n" .

    Nothing showed up. Is the above correct?

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

    Default Re: Adding Manufacturers_id to Invoice/packing Slip

    That is because I suggest that you make a new variable:
    Code:
    $chk_manufacturers_id = zen_products_lookup($order->products[$i]['id'], 'manufacturers_id');
    then use the variable $chk_manufacturers_id as this will have the Products manufacturers_id in it ...

    I am not sure what you want to do with the manufacturers_id but it will now be in the variable:
    $chk_manufacturers_id
    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: v1.5.5]
    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. 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
  2. Pictures in invoice/packing slip
    By Starrz in forum Managing Customers and Orders
    Replies: 9
    Last Post: 24 Aug 2009, 08:59 PM
  3. Invoice - Packing Slip
    By beth99 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 26 Feb 2007, 02:53 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR