I offer both shipping and delivery so I'm trying to hide the tracking link on the account history info page.
I've gotten as far as
PHP Code:
<?php if (!$order->info['shipping_method'] == 'freeship' or 'flat'){
// Begin Fedex Automated Shipping Label Mod
$order_id = $_GET['order_id'];
$trackLink = fedex_track($order_id);
if ($trackLink) {
?>
<div id="trackingButton" class="forward"><?php echo '<a href="' . $trackLink . '">' . zen_image_button(BUTTON_IMAGE_TRACK , BUTTON_TRACK_ALT) . '</a>'; ?></div>
<?php
}
}
?>
but it isn't working. What do I need to do to fix my if statement so the link only shows if the customer chose shipping?
Bookmarks