Tunnel achat url friendly

This commit is contained in:
Christophe Latour 2016-10-18 12:29:15 +02:00
parent dd9e1cc990
commit 8a04e57771
3 changed files with 9 additions and 8 deletions

View File

@ -32,7 +32,7 @@
{l s='Addresses'} {l s='Addresses'}
<span class="shape-red-long"></span> <span class="shape-red-long"></span>
</h1> </h1>
<form action="{$link->getPageLink($back_order_page, true)|escape:'html':'UTF-8'}" class="formaddress" method="post"> <form action="{$link->getPageLink('order', true, NULL, 'step=2')|escape:'html':'UTF-8'}" class="formaddress" method="post">
{if !$opc} {if !$opc}
<p class="cart_navigation top_submit snotmobile right"> <p class="cart_navigation top_submit snotmobile right">
<button type="submit" name="processAddress" class="button-grey right"> <button type="submit" name="processAddress" class="button-grey right">
@ -116,7 +116,7 @@
</button> </button>
<input type="hidden" class="hidden" name="step" value="2" /> <input type="hidden" class="hidden" name="step" value="2" />
<input type="hidden" name="back" value="{$back}" /> <input type="hidden" name="back" value="{$back}" />
<a href="{$link->getPageLink($back_order_page, true, NULL, "step=0{if $back}&back={$back}{/if}")|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-grey button-grey-min left"> <a href="{$link->getPageLink($back_order_page, true, NULL)|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-grey button-grey-min left">
<span> <span>
{l s='Continue Shopping'} {l s='Continue Shopping'}
</span> </span>

View File

@ -30,7 +30,7 @@
<h1 class="page-heading">{l s='Shipping:'} <h1 class="page-heading">{l s='Shipping:'}
<span class="shape-red-long"></span></h1> <span class="shape-red-long"></span></h1>
{include file="$tpl_dir./errors.tpl"} {include file="$tpl_dir./errors.tpl"}
<form id="form" action="{$link->getPageLink('order', true, NULL, "multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}" method="post" name="carrier_area"> <form id="form" action="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}" method="post" name="carrier_area">
{else} {else}
<div id="carrier_area" class="opc-main-block"> <div id="carrier_area" class="opc-main-block">
<h1 class="page-heading step-num"><span>2</span> {l s='Delivery methods'}</h1> <h1 class="page-heading step-num"><span>2</span> {l s='Delivery methods'}</h1>
@ -280,10 +280,11 @@
</span> </span>
</button> </button>
{/if} {/if}
<input class="hidden" type="hidden" name="multi-shipping" value="{$multi_shipping}" />
{if !$is_guest} {if !$is_guest}
{if $back} {if $back}
<a <a
href="{$link->getPageLink('order', true, NULL, "step=1&back={$back}&multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}" href="{$link->getPageLink('order', true, NULL, "step=1")|escape:'html':'UTF-8'}"
title="{l s='Previous'}" title="{l s='Previous'}"
class="button-grey button-grey-min left"> class="button-grey button-grey-min left">
<span> <span>
@ -292,7 +293,7 @@
</a> </a>
{else} {else}
<a <a
href="{$link->getPageLink('order', true, NULL, "step=1&multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}" href="{$link->getPageLink('order', true, NULL, "step=1")|escape:'html':'UTF-8'}"
title="{l s='Previous'}" title="{l s='Previous'}"
class="button-grey button-grey-min left"> class="button-grey button-grey-min left">
<span> <span>
@ -302,7 +303,7 @@
{/if} {/if}
{else} {else}
<a <a
href="{$link->getPageLink('order', true, NULL, "multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}" href="{$link->getPageLink('order', true, NULL, "step=1")|escape:'html':'UTF-8'}"
title="{l s='Previous'}" title="{l s='Previous'}"
class="button-grey button-grey-min left"> class="button-grey button-grey-min left">
<span> <span>

View File

@ -46,7 +46,7 @@
</li> </li>
<li class="col-sm-3 {if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third"> <li class="col-sm-3 {if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third">
{if $current_step=='payment' || $current_step=='shipping'} {if $current_step=='payment' || $current_step=='shipping'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1&multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}"> <a href="{$link->getPageLink('order', true, NULL, "step=1")|escape:'html':'UTF-8'}">
{l s='Address'} {l s='Address'}
</a> </a>
{else} {else}
@ -55,7 +55,7 @@
</li> </li>
<li class="col-sm-3 {if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four"> <li class="col-sm-3 {if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four">
{if $current_step=='payment'} {if $current_step=='payment'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2&multi-shipping={$multi_shipping}")|escape:'html':'UTF-8'}"> <a href="{$link->getPageLink('order', true, NULL, "step=2")|escape:'html':'UTF-8'}">
{l s='Shipping'} {l s='Shipping'}
</a> </a>
{else} {else}