Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    51
    Plugin Contributions
    0

    Default Is there away of hiding/ removing the Shipping Details Boxes on the estimator?

    Hi There

    Im just wondering if there is a way for me to remove/hide the ‘Shipping details’ boxes?

    We trade only in the UK and have no need for those drop downs.

    I don't want to start deleting stuff or doing anything too permanent as we may do more international shipping in the future, comment the code out or something?


    Image attached....


    Name:  Shipping_details.jpg
Views: 152
Size:  65.8 KB

    Cheers

    John

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Is there away of hiding/ removing the Shipping Details Boxes on the estimator?

    Find in \includes\templates\YOUR_TEMPLATE\templates\tpl_modules_shipping_estimator.php file :
    PHP Code:
    <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY?></label>
    <?php echo zen_get_country_list('zone_country_id'$selected_country'id="country" onchange="update_zone(this.form);"'); ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE?></label>
    <?php echo zen_draw_pull_down_menu('zone_id'zen_prepare_country_zones_pull_down($selected_country), $state_zone_id'id="stateZone"');?>
    <br class="clearBoth" id="stBreak" />
    <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label?></label>
    <?php echo zen_draw_input_field('state'$selectedStatezen_set_field_length(TABLE_ADDRESS_BOOK'entry_state''40') . ' id="state"') .'&nbsp;<span class="alert" id="stText">&nbsp;</span>'?>
    <br class="clearBoth" />

    <?php
            
    if(CART_SHIPPING_METHOD_ZIP_REQUIRED == "true"){
    ?>
    <label class="inputLabel"><?php echo ENTRY_POST_CODE?></label>
    <?php echo  zen_draw_input_field('zip_code'$zip_code'size="7"'); ?>
    <br class="clearBoth" />
    <?php
            
    }
    ?>
    <div class="buttonRow forward"><?php echo  zen_image_submit(BUTTON_IMAGE_UPDATEBUTTON_UPDATE_ALT); ?></div>
    Change this to
    PHP Code:
    <?php /*
    <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
    <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onchange="update_zone(this.form);"'); ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
    <?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $state_zone_id, 'id="stateZone"');?>
    <br class="clearBoth" id="stBreak" />
    <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
    <?php echo zen_draw_input_field('state', $selectedState, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"') .'&nbsp;<span class="alert" id="stText">&nbsp;</span>'; ?>
    <br class="clearBoth" />

    <?php
            if(CART_SHIPPING_METHOD_ZIP_REQUIRED == "true"){
    ?>
    <label class="inputLabel"><?php echo ENTRY_POST_CODE; ?></label>
    <?php echo  zen_draw_input_field('zip_code', $zip_code, 'size="7"'); ?>
    <br class="clearBoth" />
    <?php
            }
    ?>
    <div class="buttonRow forward"><?php echo  zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT); ?></div>
    */ 
    ?>

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Is there away of hiding/ removing the Shipping Details Boxes on the estimator?

    This is not just a "technical" issue... All the while you have other countries (territories) active in your database, non-uk visitors may still be able to shop. Restricting checkout to orders that exclusively have a UK DELIVERY address needs some careful adjustment to your shipping modules. You could have a scenario where "Aunty Mabel" who lives in Canada, wants to buy a gift for her nephew "Little Johnny" who lives in Scunthorpe.

    Configuring your countries, and shipping restrictions, can be quite challenging.
    20 years a Zencart User

 

 

Similar Threads

  1. v151 Where are the code that handle the shipping estimator POST data
    By su35 in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2014, 10:05 PM
  2. Replies: 0
    Last Post: 12 Jul 2012, 08:48 PM
  3. How to limit the number of countries from the shipping estimator page?
    By w00gle in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Jun 2009, 03:58 PM
  4. Is there any way of hiding expected products from the store front?
    By vicigreenlees in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 27 Aug 2008, 10:14 PM
  5. is there away to get rid of the header bar
    By touchclothing in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Mar 2007, 12:31 AM

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