If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / WARNING: Missing Shipping Information (& all other account history info)

WARNING: Missing Shipping Information (& all other account history info)

Locked

Started by mygreygoose on 10 Jul 2008, 12:27 AM · Views: 1,301

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Jul 2008, 12:27 AM
#1
mygreygoose avatar

mygreygoose

New Zenner

Join Date:
Jun 2007
Posts:
91
Plugin Contributions:
0

Post #1 by mygreygoose

None of the order info in my account_history_info, order_status, and tracker pages are showing up, e.g., the order's products, totals, addresses, etc. The order status history IS showing up, though. What could be causing this? The code below is an example of where it's not coming up, i.e., the WARNING: Missing Shipping Information appears b/c *$order->info['shipping_method']) *must be null.

From tpl_account_history_info_default.php:

<?php
    if (zen_not_null($order->info['shipping_method'])) {
?>
<h4><?php echo HEADING_SHIPPING_METHOD; ?></h4>
<div><?php echo $order->info['shipping_method']; ?></div>
<?php } else { // temporary just remove these 4 lines ?>
<div>WARNING: Missing Shipping Information</div>
<?php
    }
?>
```Other stuff that does not show up:

```php
<div id="myAccountPaymentInfo" class="floatingBox forward">
<h3><?php echo HEADING_BILLING_ADDRESS; ?></h3>
<address><?php echo zen_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></address>

<h4><?php echo HEADING_PAYMENT_METHOD; ?></h4>
<div><?php echo $order->info['payment_method']; ?></div>
</div>
<br class="clearBoth" />
</div>
```and

```php
 <?php
  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  ?>
    <tr>
        <td class="accountQuantityDisplay"><?php echo  $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>
        <td class="accountProductDisplay"><?php echo  $order->products[$i]['name'];

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      echo '<ul id="orderAttribsList">';
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<li>' . $order->products[$i]['attributes'][$j]['option'] . TEXT_OPTION_DIVIDER . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . '</li>';
      }
        echo '</ul>';
    }
?>
        </td>
11 Jul 2008, 12:00 AM
#2
mygreygoose avatar

mygreygoose

New Zenner

Join Date:
Jun 2007
Posts:
91
Plugin Contributions:
0

Post #2 by mygreygoose

Anyone? Any thoughts, no matter how random?

13 Jul 2008, 1:54 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

It would seem that you're missing important information from the "orders" table, and maybe also the "orders_products" and "orders_products_attributes" tables as well.
Several tables are involved in the storage of order data: http://www.zen-cart.com/wiki/index.php/Developers_-_Database_Schema#Order_History

You've only mentioned what the storefront is showing, and haven't mentioned what the admin side shows.

Also, when did this start happening? How does that relate to other events performed by the store administrator? installation of mods/addons? server database issues? attempted database backup/restores by administrators? etc

If you load up a backup of your database data into another temporary database, do you see the same thing?
How far back does the missing data go?

Is this affecting just one order or many? How many?
Has it ever worked right? What happened since then?
What addons are installed?
What version of Zen Cart?
What version of PHP and MySQL?

Is any product data affected? or just order history?
Has anybody been playing with importing and exporting data but perhaps shouldn't have?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.