Jump to content
Latest News: (loading..)

Archived

This topic is now archived and is closed to further replies.

mvela

product serial

Recommended Posts

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'] . '&nbsp;x&nbsp;</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>&nbsp;<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!!!!

 

 

Share this post


Link to post
Share on other sites

What version of osCommerce is this? What add-ons do you have installed? That "serial number" business doesn't look like standard osC code.


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get (stable) Frozen or (unstable) Edge. See also the naming convention and the latest community-supported responsive "Edge" release

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

×