Post by thomash2 » Fri Aug 30, 2013 4:32 am

I successfully made a vqmod for entering and notifying customers of shipment tracking for deutsche post, dhl, and dpd.

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>

New member

Posts

Joined
Tue Jul 30, 2013 12:44 am

Post by robdev » Thu Oct 31, 2013 1:47 am

Great Mod It makes it a lot easier for customers to see and was definitely needed. I lost a sale since a customer didn't see the radio button.

Thanks

Newbie

Posts

Joined
Sat Aug 10, 2013 12:51 am
Who is online

Users browsing this forum: No registered users and 2 guests