Forums / Setting Up Categories, Products, Attributes / Not show Model number on packing slip?

Not show Model number on packing slip?

Views: 977

Results 1 to 4 of 4
9 May 2013, 4:39 PM
#1
xandros2000 avatar

xandros2000

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Not show Model number on packing slip?

Is there a way to not show the products model number on the packing slips (be fine if it doesn't show on invoice either)? Do I have to remove the model numbers on products all together to do so? I would like to keep the model numbers (though I have them not showing) on the products for search purposes, but not show on the packing slips. Thanks in advance for any help.

9 May 2013, 4:55 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Not show Model number on packing slip?

To turn this off on the Invoice, edit the file:
/your_admin_name/invoice.php

you can add the changes in RED:

[B]<!--[/B]        <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> [B]-->[/B]
[B]/*[/B]      echo '        </td>' . "\n" .
           '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
[B]*/[/B]
[B]      echo '        </td>' . "\n";[/B]

and follow a similar pattern on the packingslip.php ...

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!

9 May 2013, 4:56 PM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Not show Model number on packing slip?

You will have to edit a core file of zen cart to do so.
There is no override directory for the admin panel ...
Please keep great notes for future upgrades ...

root directory/your_admin _name/packingslip.php

Find this:

<tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> </tr> <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
  if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
    for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) {
      echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
      echo '</i></small></nobr>';
    }
  }

  echo '        </td>' . "\n" .
       '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .
       '      </tr>' . "\n";
}

?>
</table></td>

</tr>

Change to this:

<tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"></td> </tr> <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
  if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
    for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) {
      echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
      echo '</i></small></nobr>';
    }
  }

  echo '        </td>' . "\n" .
       '        <td class="dataTableContent" valign="top">' . $order->products[$i][''] . '</td>' . "\n" .
       '      </tr>' . "\n";
}

?>
</table></td>

</tr>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

9 May 2013, 5:20 PM
#4
xandros2000 avatar

xandros2000

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Re: Not show Model number on packing slip?

Thank you both very much. Especially for the super quick replies. :smile: