I'll make an extension for it sometime.
I also heard about the recent lawsuit in Germany where a shop didn't show their shipping estimate in the shopping cart. The shop lost and had to pay the lawyers who pointed it out.
So, I decided to have the shipping estimator opened all the time in the shopping cart. At the moment, you have to click on the radio button to open it up, and it closes again if you click on voucher or coupon.
Here is the code I made to get the shipping estimator out and into it's own div:
Code: Select all
<modification>
<id>Shipping Estimate in Cart always open</id>
<version>1.0</version>
<vqmver>2.3.2</vqmver>
<author>thomash2</author>
<file name="catalog/view/theme/*/template/checkout/cart.tpl">
<operation>
<search position="replace" offset="9" index="1"><![CDATA[
<?php if ($shipping_status) { ?>
]]></search>
<add><![CDATA[
<!--SHIPPING ESTIMATE - radio button for shipping removed-->
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
<div id="shipping" class="content" style="display: <?php echo ($next == 'shipping' ? 'block' : 'none'); ?>;">
]]></search>
<add><![CDATA[
<!--SHIPPING ESTIMATE - BEGIN - move shipping out of cart-module div, remove next change-->
</div>
<div id="shipping" class="content" style="display: block;">
<!-- SHIPPING ESTIMATE - END-->
]]></add>
</operation>
<operation>
<search position="replace" offset="1"><![CDATA[
<input type="button" value="<?php echo $button_quote; ?>" id="button-quote" class="button" />
]]></search>
<add><![CDATA[
<!--SHIPPING ESTIMATE - BEGIN - move shipping out of cart-module div, remove closing div tag-->
<input type="button" value="<?php echo $button_quote; ?>" id="button-quote" class="button" />
<!--SHIPPING ESTIMATE - END-->
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
html += ' <input type="hidden" name="next" value="shipping" />';
]]></search>
<add><![CDATA[
<!--SHIPPING ESTIMATE - BEGIN - remove next change-->
]]></add>
</operation>
</file>
</modification>