// Multishipping button is replaced by a checkbox
// BugFix with back params in the checkout process
This commit is contained in:
@@ -646,4 +646,15 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
$('#gift').checkboxChange(function() { $('#gift_div').show('slow'); }, function() { $('#gift_div').hide('slow'); });
|
||||
|
||||
$('#enable-multishipping').checkboxChange(
|
||||
function() {
|
||||
$('.standard-checkout').hide(0);
|
||||
$('.multishipping-checkout').show(0);
|
||||
},
|
||||
function() {
|
||||
$('.standard-checkout').show(0);
|
||||
$('.multishipping-checkout').hide(0);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
@@ -321,34 +321,20 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{if !$cart->isAllProductsInStock()}
|
||||
<p>
|
||||
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} />
|
||||
<label for="allow_seperated_package">{l s="Send the available products first"}</label>
|
||||
</p>
|
||||
{/if}
|
||||
{if !$opc}
|
||||
{if Configuration::get('PS_ALLOW_MULTISHIPPING')}
|
||||
<p>
|
||||
<input type="checkbox" {if $multi_shipping}checked="checked"{/if} id="enable-multishipping" />
|
||||
<label for="enable-multishipping">{l s="I want to specify a delivery address for each products ordered."}</label>
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
|
||||
|
||||
@@ -415,9 +401,9 @@
|
||||
{/if}
|
||||
<p class="cart_navigation">
|
||||
{if !$opc}
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" class="exclusive" title="{l s='Next'}">{l s='Next'} »</a>
|
||||
{if {Configuration::get('PS_ALLOW_MULTISHIPPING')}}
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}&multi-shipping=1" class="multishipping-button exclusive" title="{l s='Multi-shipping'}">{l s='Multi-shipping'} »</a>
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" class="exclusive standard-checkout" title="{l s='Next'}">{l s='Next'} »</a>
|
||||
{if Configuration::get('PS_ALLOW_MULTISHIPPING')}
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}&multi-shipping=1" class="multishipping-button multishipping-checkout exclusive" title="{l s='Next'}">{l s='Next'} »</a>
|
||||
{/if}
|
||||
{/if}
|
||||
<a href="{if (isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'order.php')) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}', {else}{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'|secureReferrer}{/if}" class="button_large" title="{l s='Continue shopping'}">« {l s='Continue shopping'}</a>
|
||||
|
||||
Reference in New Issue
Block a user