Adding this plug-in has been a lifesaver and has been a great tool to fiddle around with in regards to learning about the finer nuances of zen-cart customization. Thanks!
We've been having one particularly bizarre issue tonight that has us at a loss, so hopefully someone is able to shed some light on this. What we are trying to do is to add the $order->info['order_delivery_date'] value into the tpl_account_history_info_default.php page so that the customer can see the delivery dates along with an order placed. The delivery date shows up and works properly on tp_checkout_confirmation_default.php page, so there doesn't seem to be any obvious reason why it wouldn't work on the acct history info page.
We copied this from the tpl_checkout_confirmation_default.php:
Code:
<h3><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h3>
<h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />
And put it into the tpl_account_history_info_default.php in this section:
Code:
<div id="myAccountShipInfo" class="floatingBox back">
<?php
if ($order->delivery != false) {
?>
<h3><?php echo HEADING_DELIVERY_ADDRESS; ?></h3>
<address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></address>
<?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><br />
<h4><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h4>
<div><?php echo $order->info['order_delivery_date']; ?></div>
<?php } else { // temporary just remove these 4 lines ?>
<div>WARNING: Missing Shipping Information</div>
<?php
}
?>
</div>
We get the header as expected (we had to add that to the definition file first), but the date shows up as blank space. We've tried it with and without the zen_date_long function, random h1-4 tags, div, divs with classes, or no tags, and even putting it elsewhere in the file and it is always blank. It shouldn't be a problem with the order.php class since the delivery date works elsewhere. I've verified that every order in the system has a value in the order_delivery_date field. What else could we be missing?
Bookmarks