SwissUpLabs Logo

Dhl Location Finder

Version 1.0.3 is not compatible with Firecheckout.

In order to make them work together we need to refactor Dhl_LocationFinder module (Move the locationfinder popup and form outside of the firecheckout form to prevent broken html markup).

  1. Open js/dhl_locationfinder/locationfinder.js and find the following lines:

    arrElements = Form.getElements($('co-shipping-form'));
    

    Replace them with:

    if ($('co-shipping-form')) {
        arrElements = Form.getElements($('co-shipping-form'));
    } else if ($('shipping-address')) {
        arrElements = Form.getElements($('shipping-address'));
    }
    
  2. Create new file: app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.popup.phtml

  3. Open app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.phtml and find the following code:

    <?php // Container with the Map Elements ?>
    <div id="sf-map-wrapper">
        <div class="map-content">
            ...
        </di>
    </div>
    
    1. Copy these lines to the new file created in step 2 and save it.
    2. Remove these lines from app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.phtml and save it.
    3. Add additional line on the top of the new file and save it:

       <?php $markerIcons = $this->getMarkerIcons(); ?>
      
  4. Open app/design/frontend/base/default/layout/dhl_locationfinder.xml and add find the following line:

    </checkout_onepage_index>
    

    Replace it with:

        <reference name="content">
            <block type="dhl_locationfinder/checkout_onepage_locationfinder" name="dhl_locationfinder.popup" template="dhl_locationfinder/checkout/onepage/locationfinder.popup.phtml" before="-"/>
        </reference>
    </checkout_onepage_index>
    
  5. Save the file and clear cache.

p.s. Take a look at the DHL_Versenden instructions too, as these modules are often used together.

Edit this Page