mvela Posted July 28, 2017 Share Posted July 28, 2017 HI, I HAVE PROBLEMS WITH SHOW SERIAL IN account_history_info.php. I HAVE THIS STATMENTS <?php } for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <tr>' . "\n" . ' <td class="dataTableContent" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x </td>' . "\n" . ' <td class="dataTableContent" valign="top" colspan="2">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br /><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo '</i></small></nobr>'; } } // BEGIN - Product Serial Numbers echo ' </td>' . "\n"; $serial_number = ""; if (tep_not_null($order->products[$i]['serial_number'])) $serial_number = $order->products[$i]['serial_number']; echo '<td class="dataTableContent" valign="top">' . $serial_number . '</td>' . "\n" . // END - Product Serial Numbers ' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n"; echo ' </tr>' . "\n"; } ?> only in this file I couldn't show the serials, in another files, like INVOICE.PHP, PACKINGLIST.PHP, I don't have problem. only in this file have the problem some body have answer about that? i don't have error mesage !!!! do you have answer? or idea? of what's going up? thank you for you help!!!! Link to comment Share on other sites More sharing options...
MrPhil Posted July 28, 2017 Share Posted July 28, 2017 What version of osCommerce is this? What add-ons do you have installed? That "serial number" business doesn't look like standard osC code. Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2017 Share Posted July 28, 2017 There files where it is showing are in admin, where you probably updated file catalog/admin/includes/classes/order.php and included the "serial_number" into the products array You need to do the same on the catalog side in file catalog/includes/classes/order.php My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.