From cc5c61ed5271761e8158db653c8b335f3daff2cd Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 5 Sep 2012 09:18:06 +0000 Subject: [PATCH] [-] FO : fixed bug #PSCFV-3853 --- controllers/front/OrderOpcController.php | 2 +- themes/default/order-carrier.tpl | 47 ++++++++++++++---------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index 0dfb052ad..130f531bd 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -494,7 +494,7 @@ class OrderOpcControllerCore extends ParentOrderController } $carriers = $this->context->cart->simulateCarriersOutput(); - $delivery_option = $this->context->cart->getDeliveryOption(null, true, false); + $delivery_option = $this->context->cart->getDeliveryOption(null, false, false); $wrapping_fees = (float)(Configuration::get('PS_GIFT_WRAPPING_PRICE')); $wrapping_fees_tax = new Tax((int)(Configuration::get('PS_GIFT_WRAPPING_TAX'))); $wrapping_fees_tax_inc = $wrapping_fees * (1 + (((float)($wrapping_fees_tax->rate) / 100))); diff --git a/themes/default/order-carrier.tpl b/themes/default/order-carrier.tpl index 62adb14ad..6ad17c751 100644 --- a/themes/default/order-carrier.tpl +++ b/themes/default/order-carrier.tpl @@ -71,21 +71,25 @@ {/if} {if !$opc} -{capture name=path}{l s='Shipping'}{/capture} -{include file="$tpl_dir./breadcrumb.tpl"} + {capture name=path}{l s='Shipping'}{/capture} + {include file="$tpl_dir./breadcrumb.tpl"} {/if} -{if !$opc}

{l s='Shipping'}

{else}

2 {l s='Delivery methods'}

{/if} +{if !$opc} +

{l s='Shipping'}

+{else} +

2 {l s='Delivery methods'}

+{/if} {if !$opc} -{assign var='current_step' value='shipping'} -{include file="$tpl_dir./order-steps.tpl"} - -{include file="$tpl_dir./errors.tpl"} - -
+ {assign var='current_step' value='shipping'} + {include file="$tpl_dir./order-steps.tpl"} + + {include file="$tpl_dir./errors.tpl"} + + {else} -
+
{/if} @@ -96,16 +100,20 @@ {else}

{l s='Choose your delivery method'}

-
{if isset($carriers) && isset($HOOK_BEFORECARRIER)}{$HOOK_BEFORECARRIER}{/if}
+
+ {if isset($carriers) && isset($HOOK_BEFORECARRIER)} + {$HOOK_BEFORECARRIER} + {/if} +
{if isset($isVirtualCart) && $isVirtualCart} -

{l s='No carrier needed for this order'}

+

{l s='No carrier needed for this order'}

{else} - {if $recyclablePackAllowed} -

- - -

- {/if} + {if $recyclablePackAllowed} +

+ + +

+ {/if}
{if isset($delivery_option_list)} {foreach $delivery_option_list as $id_address => $option_list} @@ -195,7 +203,8 @@ ({l s='products concerned:'} {/if} {* This foreach is on one line, to avoid tabulation in the title attribute of the acronym *} - {foreach $carrier.product_list as $product}{if $product@index == 4}...){/if}{else}{$product.name}{if !$product@last}, {else}){/if}{/if}{/foreach} + {foreach $carrier.product_list as $product} + {if $product@index == 4}...){/if}{else}{$product.name}{if !$product@last}, {else}){/if}{/if}{/foreach} {/if}