Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Location
    Prague
    Posts
    53
    Plugin Contributions
    0

    Default Shipping modules zones and table issue

    Hi, I would like to ask you for your help with this issue

    I use TABLE, TABLE, TABLE2 shipping module for our country and I would like to use the shipping module ZONES for the all other countries excl. our country.

    If I setup shipping zone Czech republic for TABLE, TABLE1, TABLE2 everythink is OK. But if I install shipping module zones and setup it to exclude Czech republic I get an empty box on the page Step 1 of 3 - Delivery Information (see the picture).

    And I need also to make 2 clones of zones shipping module for two other services of czech post. If I instal these clones in amdin I get three empty boxy because of the zones, zones1, zones2 modules.

    Any idea how to solve this problem ?
    Attached Images Attached Images  

  2. #2
    Join Date
    Feb 2007
    Location
    Prague
    Posts
    53
    Plugin Contributions
    0

    help question Re: Shipping modules zones and table issue

    PLS, help, I guess the problem is in the file tpl_checkout_shipping_default.php, but I donť know how to solve. My idea is to use some if clause which skips some part of the code if the name of the shipping module is empty. Because I do not know php code well I would like to ask you for your help. I really need to solve this problem. Thank you very much. The code of tpl_checkout_shipping_default.php file is follows:

    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=checkout_shipping.<br />
    * Displays allowed shipping modules for selection by customer.
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_checkout_shipping_default.php 5316 2006-12-21 02:25:58Z drbyte $
    */
    ?>
    <div class="centerColumn" id="checkoutShipping">

    <?php echo zen_draw_form('checkout_address', zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . zen_draw_hidden_field('action', 'process'); ?>

    <h1 id="checkoutShippingHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if ($messageStack->size('checkout_shipping') > 0) echo $messageStack->output('checkout_shipping'); ?>

    <h2 id="checkoutShippingHeadingAddress"><?php echo TITLE_SHIPPING_ADDRESS; ?></h2>

    <div id="checkoutShipto" class="floatingBox back">
    <?php if ($displayAddressEdit) { ?>
    <div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>
    <?php } ?>
    <address class=""><?php echo zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'); ?></address>
    </div>
    <div class="floatingBox important forward"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION; ?></div>
    <br class="clearBoth" />

    <?php
    if (zen_count_shipping_modules() > 0) {
    ?>

    <h2 id="checkoutShippingHeadingMethod"><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></h2>

    <?php
    if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
    ?>

    <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></div>

    <?php
    } elseif ($free_shipping == false) {
    ?>
    <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></div>

    <?php
    }
    ?>
    <?php
    if ($free_shipping == true) {
    ?>
    <div id="freeShip" class="important" ><?php echo FREE_SHIPPING_TITLE; ?>&nbsp;<?php echo $quotes[$i]['icon']; ?></div>
    <div id="defaultSelected"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . zen_draw_hidden_field('shipping', 'free_free'); ?></div>

    <?php
    } else {
    $radio_buttons = 0;
    for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    ?>
    <fieldset>
    <legend><?php echo $quotes[$i]['module']; ?>&nbsp;<?php if (isset($quotes[$i]['icon']) && zen_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></legend>

    <?php
    if (isset($quotes[$i]['error'])) {
    ?>
    <div><?php echo $quotes[$i]['error']; ?></div>
    <?php
    } else {
    for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
    // set the radio button to be checked if it is the method chosen
    $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);

    if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
    //echo ' <div id="defaultSelected" class="moduleRowSelected">' . "\n";
    //} else {
    //echo ' <div class="moduleRow">' . "\n";
    }
    ?>
    <?php
    if ( ($n > 1) || ($n2 > 1) ) {
    ?>
    <div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></div>
    <?php
    } else {
    ?>
    <div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . zen_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></div>
    <?php
    }
    ?>

    <?php echo zen_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'id="ship-'.$quotes[$i]['id'] . '-' . $quotes[$i]['methods'][$j]['id'].'"'); ?>
    <label for="ship-<?php echo $quotes[$i]['id'] . '-' . $quotes[$i]['methods'][$j]['id']; ?>" class="checkboxLabel" ><?php echo $quotes[$i]['methods'][$j]['title']; ?></label>
    <!--</div>-->
    <br class="clearBoth" />
    <?php
    $radio_buttons++;
    }
    }
    ?>

    </fieldset>
    <?php
    }
    }
    ?>

    <?php
    } else {
    ?>
    <h2 id="checkoutShippingHeadingMethod"><?php echo TITLE_NO_SHIPPING_AVAILABLE; ?></h2>
    <div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_NO_SHIPPING_AVAILABLE; ?></div>
    <?php
    }
    ?>
    <fieldset class="shipping" id="comments">
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE_CHECKOUT, BUTTON_CONTINUE_ALT); ?></div>
    <div class="buttonRow back"><?php echo '<strong>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</strong><br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>

    </form>
    </div>

 

 

Similar Threads

  1. Zones and Table shipping rates
    By gr8fun in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Mar 2014, 04:53 AM
  2. v151 new zones for shipping and payment modules
    By Thannaree in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 16 Feb 2013, 05:46 PM
  3. Shipping Countires and Zones and Table Rates
    By dustbowl in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Dec 2012, 02:09 AM
  4. v150 Shipping Modules and Weight issue
    By 4jDesigns in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Oct 2012, 01:05 PM
  5. Question on cloned table shipping modules and 1.3.9 upgrade
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Jun 2010, 03:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR