// Merge -> 10309
This commit is contained in:
@@ -80,7 +80,7 @@ function updateCarrierList(json)
|
||||
'<tr class="'+itemType+'">'+
|
||||
'<td class="carrier_action radio"><input type="radio" name="id_carrier" value="'+carriers[i].id_carrier+'" id="id_carrier'+carriers[i].id_carrier+'" onclick="updateCarrierSelectionAndGift();" '+extraHtml+' /></td>'+
|
||||
'<td class="carrier_name"><label for="id_carrier'+carriers[i].id_carrier+'">'+name+'</label></td>'+
|
||||
'<td class="carrier_infos">'+carriers[i].delay+'</td>'+
|
||||
'<td class="carrier_infos">'+(carriers[i].delay != null ? carriers[i].delay : '')+'</td>'+
|
||||
'<td class="carrier_price">'+price;
|
||||
if (carriers[i].price != 0)
|
||||
{
|
||||
|
||||
@@ -347,8 +347,9 @@ function updateDisplay()
|
||||
var reduction = 0;
|
||||
if (selectedCombination['specific_price'].reduction_price || selectedCombination['specific_price'].reduction_percent)
|
||||
{
|
||||
reduction = productPrice * (parseFloat(selectedCombination['specific_price'].reduction_percent) / 100) + selectedCombination['specific_price'].reduction_price;
|
||||
if (selectedCombination['specific_price'].reduction_price && (displayPrice || noTaxForThisProduct))
|
||||
reduction_price = (specific_currency ? reduction_price : reduction_price * currencyRate);
|
||||
reduction = productPrice * (parseFloat(reduction_percent) / 100) + reduction_price;
|
||||
if (reduction_price && (displayPrice || noTaxForThisProduct))
|
||||
reduction = ps_round(reduction / tax, 6);
|
||||
}
|
||||
else if (product_specific_price.reduction_price || product_specific_price.reduction_percent)
|
||||
|
||||
@@ -351,7 +351,7 @@ $_LANG['order-detail_4ce81305b7edb043d0a7a5c75cab17d0'] = 'There is';
|
||||
$_LANG['order-detail_07213a0161f52846ab198be103b5ab43'] = 'errors';
|
||||
$_LANG['order-detail_cb5e100e5a9a3e7f6d1fd97512215282'] = 'error';
|
||||
$_LANG['order-detail_37c06f5486d3068a0a9604552c7e081f'] = 'Add a message:';
|
||||
$_LANG['order-detail_617096c86d35478132502be00e12e016'] = 'f you would like to add a comment about your order, please write it below.';
|
||||
$_LANG['order-detail_617096c86d35478132502be00e12e016'] = 'If you would like to add a comment about your order, please write it below.';
|
||||
$_LANG['order-detail_94966d90747b97d1f0f206c98a8b1ac3'] = 'Send';
|
||||
$_LANG['order-detail_a9979df9e349275e2d86f7af03e24d14'] = 'You cannot make a merchandise return with a guest account';
|
||||
$_LANG['order-follow_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'My account';
|
||||
|
||||
@@ -24,6 +24,12 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $opc}
|
||||
{assign var="back_order_page" value="order-opc.php"}
|
||||
{else}
|
||||
{assign var="back_order_page" value="order.php"}
|
||||
{/if}
|
||||
|
||||
{*
|
||||
** Retro compatibility for PrestaShop version < 1.4.2.5 with a recent theme
|
||||
** Syntax smarty for v2
|
||||
@@ -40,8 +46,8 @@
|
||||
{$ignoreList.6 = "date_add"}
|
||||
{$ignoreList.7 = "date_upd"}
|
||||
{$ignoreList.8 = "active"}
|
||||
{$ignoreList.9 = "deleted"}
|
||||
|
||||
{$ignoreList.9 = "deleted"}
|
||||
|
||||
{* PrestaShop 1.4.0.17 compatibility *}
|
||||
{if isset($addresses)}
|
||||
{foreach from=$addresses key=k item=address}
|
||||
@@ -106,11 +112,11 @@
|
||||
|
||||
ordered_fields_name = ordered_fields_name.concat(formatedAddressFieldsValuesList[id_address]['ordered_fields']);
|
||||
ordered_fields_name = ordered_fields_name.concat(['update']);
|
||||
|
||||
|
||||
dest_comp.html('');
|
||||
|
||||
li_content['title'] = adr_titles_vals[address_type];
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back=order?step=1{if $back}&mod={$back}{/if}" title="{l s='Update'}">{l s='Update'}</a>';
|
||||
li_content['update'] = '<a href="{$link->getPageLink('address', true, NULL, "id_address")}'+id_address+'&back={$back_order_page}?step=1{if $back}&mod={$back}{/if}" title="{l s='Update'}">{l s='Update'}</a>';
|
||||
|
||||
appendAddressList(dest_comp, li_content, ordered_fields_name);
|
||||
{rdelim}
|
||||
@@ -163,7 +169,7 @@
|
||||
{l s='Multi-shipping'}
|
||||
</a>
|
||||
</div>
|
||||
<form action="{$link->getPageLink('order', true)}" method="post">
|
||||
<form action="{$link->getPageLink($back_order_page, true)}" method="post">
|
||||
{else}
|
||||
<div id="opc_account" class="opc-main-block">
|
||||
<div id="opc_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
@@ -176,16 +182,16 @@
|
||||
{foreach from=$addresses key=k item=address}
|
||||
<option value="{$address.id_address|intval}" {if $address.id_address == $cart->id_address_delivery}selected="selected"{/if}>{$address.alias|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</select>
|
||||
</p>
|
||||
<p class="checkbox" {if $cart->isVirtualCart()}style="display:none;"{/if}>
|
||||
<input type="checkbox" name="same" id="addressesAreEquals" value="1" onclick="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}" {if $cart->id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />
|
||||
<label for="addressesAreEquals">{l s='Use the same address for billing.'}</label>
|
||||
</p>
|
||||
|
||||
|
||||
<p id="address_invoice_form" class="select" {if $cart->id_address_invoice == $cart->id_address_delivery}style="display: none;"{/if}>
|
||||
|
||||
|
||||
{if $addresses|@count > 1}
|
||||
<label for="id_address_invoice" class="strong">{l s='Choose a billing address:'}</label>
|
||||
<select name="id_address_invoice" id="id_address_invoice" class="address_select" onchange="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}">
|
||||
@@ -194,11 +200,7 @@
|
||||
{/section}
|
||||
</select>
|
||||
{else}
|
||||
{if $back}
|
||||
<a style="margin-left: 221px;" href="{$link->getPageLink('address', true, NULL, "back=order&step=1&select_address=1&mod=$back")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
{else}
|
||||
<a style="margin-left: 221px;" href="{$link->getPageLink('address', true, NULL, "back=order&step=1&select_address=1")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
{/if}
|
||||
<a style="margin-left: 221px;" href="{$link->getPageLink('address', true, NULL, "back={$back_order_page}?step=1&select_address=1{if $back}&mod={$back}{/if}")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
{/if}
|
||||
</p>
|
||||
<div class="clear"></div>
|
||||
@@ -208,11 +210,7 @@
|
||||
</ul>
|
||||
<br class="clear" />
|
||||
<p class="address_add submit">
|
||||
{if $back}
|
||||
<a href="{$link->getPageLink('address', true, NULL, "back=order&step=1&mod={$back}")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
{else}
|
||||
<a href="{$link->getPageLink('address', true, NULL, "back=order&step=1")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
{/if}
|
||||
<a href="{$link->getPageLink('address', true, NULL, "back={$back_order_page}?step=1{if $back}&mod={$back}{/if}")}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>
|
||||
</p>
|
||||
{if !$opc}
|
||||
<div id="ordermsg">
|
||||
@@ -225,11 +223,7 @@
|
||||
<p class="cart_navigation submit">
|
||||
<input type="hidden" class="hidden" name="step" value="2" />
|
||||
<input type="hidden" name="back" value="{$back}" />
|
||||
{if $back}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=0&back={$back}")}" title="{l s='Previous'}" class="button">« {l s='Previous'}</a>
|
||||
{else}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=0")}" title="{l s='Previous'}" class="button">« {l s='Previous'}</a>
|
||||
{/if}
|
||||
<a href="{$link->getPageLink($back_order_page, true, NULL, "step=0{if $back}&back={$back}{/if}")}" title="{l s='Previous'}" class="button">« {l s='Previous'}</a>
|
||||
<input type="submit" name="processAddress" value="{l s='Next'} »" class="exclusive" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
var max_item = "{l s='You cannot add more than' js=1} {$comparator_max_item} {l s='product(s) in the product comparator' js=1}";
|
||||
//]]>
|
||||
</script>
|
||||
<form method="post" action="{$link->getPageLink('products-comparison', true)}" onsubmit="true">
|
||||
|
||||
<form method="get" action="{$link->getPageLink('products-comparison')}" onsubmit="true">
|
||||
<p>
|
||||
<input type="submit" class="button" value="{l s='Compare'}" style="float:right" />
|
||||
<input type="hidden" name="compare_product_list" class="compare_product_list" value="" />
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
</span>
|
||||
{/if}
|
||||
</p>
|
||||
<a class="cmp_remove" href="{$link->getPageLink('products-comparison.php', true)}" rel="ajax_id_product_{$product->id}">{l s='Remove'}</a>
|
||||
<a class="cmp_remove" href="{$link->getPageLink('products-comparison.php')}" rel="ajax_id_product_{$product->id}">{l s='Remove'}</a>
|
||||
<a class="button" href="{$product->getLink()}" title="{l s='View'}">{l s='View'}</a>
|
||||
{if (!$product->hasAttributes() OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product->minimal_quantity == 1 AND $product->customizable != 2 AND !$PS_CATALOG_MODE}
|
||||
{if ($product->quantity > 0 OR $product->allow_oosp)}
|
||||
|
||||
Reference in New Issue
Block a user