Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Shipping Estimator with Shopping Cart Contents

Shipping Estimator with Shopping Cart Contents

Locked

Views: 491

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
22 Jun 2010, 6:52 PM
#1
tmdelia avatar

tmdelia

New Zenner

Join Date:
May 2005
Posts:
69
Plugin Contributions:
0

Shipping Estimator with Shopping Cart Contents

I've cut all of the code related to the shipping estimator from the tpl_shopping_cart_default.php template and pasted it into a table cell to the right of my shopping cart contents.

It works perfectly when I'm logged in, but not at all when I am not logged in. Any idea why this would be? Here's the code:

<td><?php
    if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {

?>

<div class="buttonRow back"><?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .

zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>

<?php
    }
?>

<?php
      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {
/**
 * load the shipping estimator code if needed
 */
?>

      <?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>

<?php
      }
?>

</td>