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).
-
Open
js/dhl_locationfinder/locationfinder.jsand 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')); } -
Create new file:
app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.popup.phtml -
Open
app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.phtmland find the following code:<?php // Container with the Map Elements ?> <div id="sf-map-wrapper"> <div class="map-content"> ... </di> </div>- Copy these lines to the new file created in step 2 and save it.
- Remove these lines from
app/design/frontend/base/default/template/dhl_locationfinder/checkout/onepage/locationfinder.phtmland save it. -
Add additional line on the top of the new file and save it:
<?php $markerIcons = $this->getMarkerIcons(); ?>
-
Open
app/design/frontend/base/default/layout/dhl_locationfinder.xmland 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> -
Save the file and clear cache.
p.s. Take a look at the DHL_Versenden instructions too, as these modules are often used together.