// products TPL

This commit is contained in:
Kevin Granger
2013-07-11 18:58:44 +02:00
parent 40967e6525
commit 84c0ccbae6
14 changed files with 440 additions and 325 deletions
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@ body.fixed-top
min-height: 100%
padding: 20px 20px 90px 20px
margin: 0 0 0 240px
border-left: 1px solid #CECECE
border-left: 2px solid black
background-color: white
.page-sidebar
@@ -34,7 +34,10 @@ body.fixed-top
margin: 0
padding: 0
li
background-color: white
list-style: none
&:hover
background-color: #eee
> li
&.active
> a
@@ -80,9 +83,10 @@ body.fixed-top
li:not(.active) ul
display: none
li.expanded ul
display: block
background-color: white
li.expanded
ul
display: block
background-color: white
> ul > li > ul.sub-menu
display: none
@@ -172,7 +176,6 @@ $icon-color: #7A0928
background-color: adjust-hue($icon-color, 220)
.navbar-inner
box-shadow: none!important
.input-append
@@ -312,10 +315,7 @@ form legend
//filter table
tr.filter
background-color: #EEEEEE
input[type="text"].filter, input[type="password"].filter, select.filter
min-height: 30px
height: 30px
font-size: 12px
.btn
@@ -48,19 +48,28 @@
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="id_category_default" type="default"}
<label class="control-label col-lg-3" for="id_category_default">{l s='Default category:'}</label>
<label class="control-label col-lg-3" for="id_category_default">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='The default category is the category displayed by default.'}">
{l s='Default category:'}
</span>
</label>
<div class="col-lg-5">
<select id="id_category_default" name="id_category_default">
{foreach from=$selected_cat item=cat}
<option value="{$cat.id_category}" {if $id_category_default == $cat.id_category}selected="selected"{/if} >{$cat.name}</option>
{/foreach}
</select>
<div class="help-block">{l s='The default category is the category displayed by default.'}</div>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Accessories:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Begin typing the first letters of the product name, then select the product from the drop-down list.'}{l s='(Do not forget to save the product afterward)'}">
{l s='Accessories:'}
</span>
</label>
<div class="col-lg-5">
<input type="hidden" name="inputAccessories" id="inputAccessories" value="{foreach from=$accessories item=accessory}{$accessory.id_product}-{/foreach}" />
<input type="hidden" name="nameAccessories" id="nameAccessories" value="{foreach from=$accessories item=accessory}{$accessory.name|escape:'htmlall':'UTF-8'}¤{/foreach}" />
@@ -68,8 +77,7 @@
<div id="ajax_choose_product">
<input type="text" value="" id="product_autocomplete_input" />
<div class="help-block">
{l s='Begin typing the first letters of the product name, then select the product from the drop-down list.'}
{l s='(Do not forget to save the product afterward)'}
</div>
</div>
<div id="divAccessories">
@@ -24,43 +24,51 @@
*}
{if isset($obj->id)}
<input type="hidden" name="submitted_tabs[]" value="Attachments" />
<h4>{l s='Attachment'}</h4>
<div class="separation"></div>
<fieldset style="border:none;">
<label>{l s='Filename:'} </label>
<div class="margin-form translatable">
{foreach $languages as $language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<input type="text" name="attachment_name_{$language.id_lang}" value="{$attachment_name[$language.id_lang]|escape:'htmlall':'UTF-8'}" />
</div>
{/foreach}
<sup>&nbsp;*</sup>
</div>
<p class="margin-form preference_description">{l s='Maximum 32 characters.'}</p>
<div class="clear">&nbsp;</div>
<label>{l s='Description:'} </label>
<div class="margin-form translatable">
{foreach $languages as $language}
<div class="lang_{$language.id_lang}" style="display: {if $language.id_lang == $default_form_language}block{else}none{/if}; float: left;">
<textarea name="attachment_description_{$language.id_lang}">{$attachment_description[$language.id_lang]|escape:'htmlall':'UTF-8'}</textarea>
</div>
{/foreach}
</div>
<div class="clear">&nbsp;</div>
<label>{l s='File:'}</label>
<div class="margin-form">
<p><input type="file" name="attachment_file" /></p>
<p class="preference_description">{l s='Upload a file from your computer'} ({$PS_ATTACHMENT_MAXIMUM_SIZE|string_format:"%.2f"} {l s='MB max.'})</p>
</div>
<div class="clear">&nbsp;</div>
<div class="margin-form">
<input type="submit" value="{l s='Upload attachment file'}" name="submitAddAttachments" class="button" />
</div>
<div class="small"><sup>*</sup> {l s='Required field'}</div>
</fieldset>
<div class="separation"></div>
<div class="clear">&nbsp;</div>
<input type="hidden" name="submitted_tabs[]" value="Attachments" />
<legend>{l s='Attachment'}</legend>
<div class="row">
<label class="control-label col-lg-3 required">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Maximum 32 characters.'}">
{l s='Filename:'}
</span>
</label>
<div class="col-lg-7 translatable">
{foreach $languages as $language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}">
<input type="text" name="attachment_name_{$language.id_lang}" value="{$attachment_name[$language.id_lang]|escape:'htmlall':'UTF-8'}" />
</div>
{/foreach}
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Description:'} </label>
<div class="col-lg-7 translatable">
{foreach $languages as $language}
<div class="lang_{$language.id_lang}" style="display: {if $language.id_lang == $default_form_language}block{else}none{/if};">
<textarea name="attachment_description_{$language.id_lang}">{$attachment_description[$language.id_lang]|escape:'htmlall':'UTF-8'}</textarea>
</div>
{/foreach}
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Upload a file from your computer'} ({$PS_ATTACHMENT_MAXIMUM_SIZE|string_format:'%.2f'} {l s='MB max.'})">
{l s='File:'}
</span>
</label>
<div class="input-group col-lg-7">
<input type="file" name="attachment_file" />
<input type="submit" value="{l s='Upload attachment file'}" name="submitAddAttachments" class="btn btn-default" />
</div>
</div>
<table>
<tr>
<td>
@@ -48,8 +48,7 @@
<legend>{l s='Add or modify combinations for this product.'}</legend>
<div class="alert alert-info">
<p>
{l s='Or use the'}&nbsp;<a class="btn btn-default bt-icon confirm_leave" href="index.php?tab=AdminAttributeGenerator&id_product={$product->id}&attributegenerator&token={$token_generator}"><i class="icon-magic"></i> <span>{l s='Product combinations generator'}</span></a> {l s='in order to automatically create a set of combinations.'}</p>
{l s='Or use the'}&nbsp;<a class="btn btn-link bt-icon confirm_leave" href="index.php?tab=AdminAttributeGenerator&id_product={$product->id}&attributegenerator&token={$token_generator}"><i class="icon-magic"></i> {l s='Product combinations generator'} <i class="icon-external-link-sign"></i></a> {l s='in order to automatically create a set of combinations.'}
</div>
{if $combination_exists}
@@ -71,11 +70,11 @@
<label class="control-label col-lg-3">{l s='Attribute:'}</label>
<div class="col-lg-5">
<select name="attribute_group" id="attribute_group" onchange="populate_attrs();">
{if isset($attributes_groups)}
{foreach from=$attributes_groups key=k item=attribute_group}
<option value="{$attribute_group.id_attribute_group}">{$attribute_group.name|escape:'htmlall':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
{/if}
{if isset($attributes_groups)}
{foreach from=$attributes_groups key=k item=attribute_group}
<option value="{$attribute_group.id_attribute_group}">{$attribute_group.name|escape:'htmlall':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
{/if}
</select>
</div>
</div>
@@ -103,91 +102,127 @@
</div>
</div>
<hr/>
<div class="row">
<label class="control-label col-lg-3">{l s='Reference:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Special characters allowed:'} .-_#">
{l s='Reference:'}
</span>
</label>
<div class="col-lg-5">
<input type="text" id="attribute_reference" name="attribute_reference" value="" />
{l s='EAN13:'}
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">
{l s='EAN13:'}
</label>
<div class="col-lg-5">
<input maxlength="13" type="text" id="attribute_ean13" name="attribute_ean13" value="" />
{l s='UPC:'}
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">
{l s='UPC:'}
</label>
<div class="col-lg-5">
<input maxlength="12" type="text" id="attribute_upc" name="attribute_upc" value="" />
</div>
<p class="help-block" name="help_box">{l s='Special characters allowed:'} .-_#</p>
</div>
<hr/>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_wholesale_price" type="default"}
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Leave blank if the price does not change'}">
{l s='Wholesale price:'}
</span>
</label>
<div class="input-group col-lg-5">
<span class="input-group-addon">
{if $currency->format % 2 != 0}{$currency->sign}{/if}
{if $currency->format % 2 == 0}{$currency->sign}{/if}
</span>
<input type="text" name="attribute_wholesale_price" id="attribute_wholesale_price" value="" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
</div>
<span style="display:none;" id="attribute_wholesale_price_full">({l s='Overrides wholesale price on "Information" tab'})</span>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_price_impact" type="attribute_price_impact"}
<label class="control-label col-lg-3">
{l s='Impact on price:'}
</label>
<div class="col-lg-5">
<select name="attribute_price_impact" id="attribute_price_impact" onchange="check_impact(); calcImpactPriceTI();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
</div>
</div>
<div id="span_impact" class="row">
&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="hidden" id="attribute_priceTEReal" name="attribute_price" value="0.00" />
<input type="text" id="attribute_price" value="0.00" onkeyup="$('#attribute_priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>{if $currency->format % 2 == 0} {$currency->sign}{/if}
{if $country_display_tax_label}
{l s='(tax excl.)'}
<span {if $tax_exclude_option}style="display:none"{/if}> {l s='or'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_priceTI" id="attribute_priceTI" value="0.00" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
{if $currency->format % 2 == 0} {$currency->sign}{/if} {l s='(tax incl.)'}
</span> {l s='final product price will be set to'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<span id="attribute_new_total_price">0.00</span>
{if $currency->format % 2 == 0}{$currency->sign} {/if}
{/if}
</div>
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_wholesale_price" type="default"}
<label>{l s='Wholesale price:'}</label>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_weight_impact" type="attribute_weight_impact"}
<label class="control-label col-lg-3">
{l s='Impact on weight:'}
</label>
<div class="col-lg-5">
<select name="attribute_weight_impact" id="attribute_weight_impact" onchange="check_weight_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
</div>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;
<input type="text" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$ps_weight_unit}
</span>
</div>
{if $currency->format % 2 != 0}{$currency->sign}{/if}
<input type="text" size="6" name="attribute_wholesale_price" id="attribute_wholesale_price" value="" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{if $currency->format % 2 == 0} {$currency->sign} {/if}<span id="attribute_wholesale_price_blank">({l s='Leave blank if the price does not change'})</span>
<span style="display:none" id="attribute_wholesale_price_full">({l s='Overrides wholesale price on "Information" tab'})</span>
<div id="tr_unit_impact" class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_unit_impact" type="attribute_unit_impact"}
<label class="control-label col-lg-3">{l s='Impact on unit price :'}</label>
<div class="col-lg-5">
<select name="attribute_unit_impact" id="attribute_unit_impact" onchange="check_unit_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
</div>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;&nbsp;&nbsp;
{if $currency->format % 2 != 0} {$currency->sign} {/if}
<input type="text" size="6" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />{if $currency->format % 2 == 0} {$currency->sign}{/if} / <span id="unity_third">{$field_value_unity}</span>
</span>
</div>
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_price_impact" type="attribute_price_impact"}
<label>{l s='Impact on price:'}</label>
<select name="attribute_price_impact" id="attribute_price_impact" onchange="check_impact(); calcImpactPriceTI();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="hidden" id="attribute_priceTEReal" name="attribute_price" value="0.00" />
<input type="text" size="6" id="attribute_price" value="0.00" onkeyup="$('#attribute_priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>{if $currency->format % 2 == 0} {$currency->sign}{/if}
{if $country_display_tax_label}
{l s='(tax excl.)'}
<span {if $tax_exclude_option}style="display:none"{/if}> {l s='or'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_priceTI" id="attribute_priceTI" value="0.00" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
{if $currency->format % 2 == 0} {$currency->sign}{/if} {l s='(tax incl.)'}
</span> {l s='final product price will be set to'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<span id="attribute_new_total_price">0.00</span>
{if $currency->format % 2 == 0}{$currency->sign} {/if}
{/if}
</span>
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_weight_impact" type="attribute_weight_impact"}
<label>{l s='Impact on weight:'}</label>
<select name="attribute_weight_impact" id="attribute_weight_impact" style="width: 140px;" onchange="check_weight_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;
<input type="text" size="6" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$ps_weight_unit}
</span>
</td>
</tr>
<tr id="tr_unit_impact">
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_unit_impact" type="attribute_unit_impact"}
<label style="width: 100px; float: right">{l s='Impact on unit price :'}</label>
</td>
<td colspan="2" style="padding-bottom:5px;">
<select name="attribute_unit_impact" id="attribute_unit_impact" style="width: 140px;" onchange="check_unit_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;&nbsp;&nbsp;
{if $currency->format % 2 != 0} {$currency->sign} {/if}
<input type="text" size="6" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />{if $currency->format % 2 == 0} {$currency->sign}{/if} / <span id="unity_third">{$field_value_unity}</span>
</span>
</td>
</tr>
{if $ps_use_ecotax}
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">
@@ -25,56 +25,44 @@
{if isset($obj->id)}
<input type="hidden" name="submitted_tabs[]" value="Customization" />
<h4>{l s='Add or modify customizable properties.'}</h4>
<legend>{l s='Add or modify customizable properties.'}</legend>
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Customization"}
<div class="separation"></div><br />
<table cellpadding="5" style="width:100%">
<tr>
<td style="width:150px;text-align:right;padding-right:10px;font-weight:bold;vertical-align:top;" valign="top">
{include file="controllers/products/multishop/checkbox.tpl" field="uploadable_files" type="default"}
<label>{l s='File fields:'}</label>
</td>
<td style="padding-bottom:5px;">
<input type="text" name="uploadable_files" id="uploadable_files" size="4" value="{$uploadable_files|htmlentities}" />
<p class="preference_description">{l s='Number of upload file fields displayed'}</p>
</td>
</tr>
<tr>
<td style="width:150px;text-align:right;padding-right:10px;font-weight:bold;vertical-align:top;" valign="top">
{include file="controllers/products/multishop/checkbox.tpl" field="text_fields" type="default"}
<label>{l s='Text fields:'}</label>
</td>
<td style="padding-bottom:5px;">
<input type="text" name="text_fields" id="text_fields" size="4" value="{$text_fields|htmlentities}" />
<p class="preference_description">{l s='Number of text fields displayed'}</p>
</td>
</tr>
<tr>
<td><div class="clear">&nbsp;</div></td>
</tr>
{if $has_file_labels}
<tr>
<td colspan="2"><div class="separation"></div></td>
</tr>
<tr>
<td style="width:200px" valign="top">{l s='Define the label of the file fields:'}</td>
<td>
{$display_file_labels}
</td>
</tr>
{/if}
{if $has_text_labels}
<tr>
<td colspan="2"><div class="separation"></div></td>
</tr>
<tr>
<td style="width:200px" valign="top">{l s='Define the label of the text fields:'}</td>
<td>
{$display_text_labels}
</td>
</tr>
{/if}
</table>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="uploadable_files" type="default"}
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Number of upload file fields displayed'}">
{l s='File fields:'}
</span>
</label>
<div class="col-lg-1">
<input type="text" name="uploadable_files" id="uploadable_files" value="{$uploadable_files|htmlentities}" />
</div>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="text_fields" type="default"}
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Number of text fields displayed'}">
{l s='Text fields:'}
</span>
</label>
<div class="col-lg-1">
<input type="text" name="text_fields" id="text_fields" value="{$text_fields|htmlentities}" />
</div>
</div>
{if $has_file_labels}
{l s='Define the label of the file fields:'}
{$display_file_labels}
{/if}
{if $has_text_labels}
{l s='Define the label of the text fields:'}
{$display_text_labels}
{/if}
{/if}
@@ -25,76 +25,63 @@
{if isset($product->id)}
<input type="hidden" name="submitted_tabs[]" value="Features" />
<h4>{l s='Assign features to this product:'}</h4>
<div class="separation"></div>
<ul>
<li>{l s='You can specify a value for each relevant feature regarding this product. Empty fields will not be displayed.'}</li>
<li>{l s='You can either create a specific value, or select among the existing pre-defined values you\'ve previously added.'}</li>
</ul>
</td>
</tr>
</table>
<br />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:100%;">
<colgroup>
<col width="300">
<col width="">
<col width="300">
</colgroup>
<tr>
<th height="39px">{l s='Feature'}</th>
<th>{l s='Pre-defined value'}</th>
<th><u>{l s='or'}</u> {l s='Customized value'}</th>
</tr>
</table>
{foreach from=$available_features item=available_feature}
<table cellpadding="5" style="background-color:#fff; width: 100%;border:1px solid #ccc; border-top:none; padding:4px 6px;">
<colgroup>
<col width="300">
<col width="">
<col width="300">
</colgroup>
<tr>
<td>{$available_feature.name}</td>
<td>
{if sizeof($available_feature.featureValues)}
<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
onchange="$('.custom_{$available_feature.id_feature}_').val('');">
<option value="0">---&nbsp;</option>
{foreach from=$available_feature.featureValues item=value}
<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
{$value.value|truncate:40}&nbsp;
</option>
{/foreach}
</select>
{else}
<input type="hidden" name="feature_{$available_feature.id_feature}_value" value="0" />
<span>{l s='N/A'} -
<a href="{$link->getAdminLink('AdminFeatures')|escape:'htmlall':'UTF-8'}&amp;addfeature_value&id_feature={$available_feature.id_feature}"
class="confirm_leave button"><img src="../img/admin/add.gif" alt="values_first" title="{l s='Add pre-defined values first'}" />&nbsp;{l s='Add pre-defined values first'}</a>
</span>
{/if}
</td>
<td class="translatable">
{foreach from=$languages key=k item=language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<textarea class="custom_{$available_feature.id_feature}_" name="custom_{$available_feature.id_feature}_{$language.id_lang}" cols="40" rows="1"
onkeyup="if (isArrowKey(event)) return ;$('#feature_{$available_feature.id_feature}_value').val(0);" >{$available_feature.val[$k].value|escape:'htmlall':'UTF-8'|default:""}</textarea>
</div>
{/foreach}
</td>
</tr>
{foreachelse}
<tr><td colspan="3" style="text-align:center;">{l s='No features have been defined'}</td></tr>
{/foreach}
</table>
<div class="separation"></div>
<div>
<a href="{$link->getAdminLink('AdminFeatures')|escape:'htmlall':'UTF-8'}&amp;addfeature" class="confirm_leave button">
<img src="../img/admin/add.gif" alt="new_features" title="{l s='Add a new feature'}" />&nbsp;{l s='Add a new feature'}
</a>
<legend>{l s='Assign features to this product:'}</legend>
<div class="alert alert-info">
{l s='You can specify a value for each relevant feature regarding this product. Empty fields will not be displayed.'}<br/>
{l s='You can either create a specific value, or select among the existing pre-defined values you\'ve previously added.'}
</div>
{/if}
<table class="table">
<thead>
<tr>
<th>{l s='Feature'}</th>
<th>{l s='Pre-defined value'}</th>
<th>{l s='or'} {l s='Customized value'}</th>
</tr>
</thead>
{foreach from=$available_features item=available_feature}
<tbody>
<tr>
<td>{$available_feature.name}</td>
<td>
{if sizeof($available_feature.featureValues)}
<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
onchange="$('.custom_{$available_feature.id_feature}_').val('');">
<option value="0">---</option>
{foreach from=$available_feature.featureValues item=value}
<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
{$value.value|truncate:40}
</option>
{/foreach}
</select>
{else}
<input type="hidden" name="feature_{$available_feature.id_feature}_value" value="0" />
<span>{l s='N/A'} -
<a href="{$link->getAdminLink('AdminFeatures')|escape:'htmlall':'UTF-8'}&amp;addfeature_value&id_feature={$available_feature.id_feature}"
class="confirm_leave button"><i class="icon-plus-sign"></i> {l s='Add pre-defined values first'}</a>
</span>
{/if}
</td>
<td class="translatable">
{foreach from=$languages key=k item=language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<textarea class="custom_{$available_feature.id_feature}_" name="custom_{$available_feature.id_feature}_{$language.id_lang}" cols="40" rows="1"
onkeyup="if (isArrowKey(event)) return ;$('#feature_{$available_feature.id_feature}_value').val(0);" >{$available_feature.val[$k].value|escape:'htmlall':'UTF-8'|default:""}</textarea>
</div>
{/foreach}
</td>
</tr>
{foreachelse}
<tr><td colspan="3" style="text-align:center;"><i class="icon-warning-sign"></i> {l s='No features have been defined'}</td></tr>
{/foreach}
</tbody>
</table>
<a href="{$link->getAdminLink('AdminFeatures')|escape:'htmlall':'UTF-8'}&amp;addfeature" class="btn btn-link confirm_leave button">
<i class="icon-plus-sign"></i> {l s='Add a new feature'} <i class="icon-external-link-sign"></i>
</a>
{/if}
@@ -177,6 +177,7 @@
handleSaveButtons();
}
hideOtherLanguage(default_language);
$('.label-tooltip').tooltip();
});
$(".productTabs .tab-row.active").click();
@@ -116,8 +116,15 @@
</div>
</div>
<hr/>
<div class="row">
<label class="control-label col-lg-3 required">{l s='Name:'}</label>
<label class="control-label col-lg-3 required">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Invalid characters:'} &lt;&gt;;=#{}">
{l s='Name:'}
</span>
</label>
<div class="col-lg-5">
<div class="row">
{include file="controllers/products/input_text_lang.tpl"
@@ -127,34 +134,47 @@
input_name="name"
}
</div>
<span class="help-block" name="help_box">{l s='Invalid characters:'} &lt;&gt;;=#{}</span>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">{$bullet_common_field} {l s='Reference:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Special characters allowed:'} .-_#\">
{$bullet_common_field} {l s='Reference:'}
</span>
</label>
<div class="col-lg-5">
<input type="text" name="reference" value="{$product->reference|htmlentitiesUTF8}" />
<span class="help-block" name="help_box">{l s='Special characters allowed:'} .-_#\</span>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">{$bullet_common_field} {l s='EAN13 or JAN:'}</label>
<div class="col-lg-5">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='(Europe, Japan)'}">
{$bullet_common_field} {l s='EAN13 or JAN:'}
</span>
</label>
<div class="col-lg-3">
<input maxlength="13" type="text" name="ean13" value="{$product->ean13|htmlentitiesUTF8}" />
<span class="help-block">{l s='(Europe, Japan)'}</span>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3">{$bullet_common_field} {l s='UPC:'}</label>
<div class="col-lg-5">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='(US, Canada)'}">
{$bullet_common_field} {l s='UPC:'}
</span>
</label>
<div class="col-lg-3">
<input maxlength="12" type="text" name="upc" value="{$product->upc|escape:html:'UTF-8'}" />
<span class="help-block">{l s='(US, Canada)'}</span>
</div>
</div>
<hr/>
{* status informations *}
{include file="controllers/products/multishop/checkbox.tpl" field="active" type="radio" onclick=""}
<div class="row">
@@ -220,7 +240,7 @@
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="visibility" type="default"}
<label class="control-label col-lg-3">{l s='Visibility:'}</label>
<div class="col-lg-5">
<div class="col-lg-3">
<select name="visibility" id="visibility">
<option value="both" {if $product->visibility == 'both'}selected="selected"{/if} >{l s='Everywhere'}</option>
<option value="catalog" {if $product->visibility == 'catalog'}selected="selected"{/if} >{l s='Catalog only'}</option>
@@ -260,7 +280,7 @@
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"}
<label class="control-label col-lg-3">{l s='Condition:'}</label>
<div class="col-lg-5">
<div class="col-lg-3">
<select name="condition" id="condition">
<option value="new" {if $product->condition == 'new'}selected="selected"{/if} >{l s='New'}</option>
<option value="used" {if $product->condition == 'used'}selected="selected"{/if} >{l s='Used'}</option>
@@ -271,30 +291,42 @@
</div>
</div>
<hr/>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="description_short" type="tinymce" multilang="true"}
<label class="control-label col-lg-3">{l s='Short description:'}</label>
<div class="col-lg-5">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Appears in the product list(s), and on the top of the product page.'}">
{l s='Short description:'}
</span>
</label>
<div class="col-lg-8">
{include file="controllers/products/textarea_lang.tpl" languages=$languages input_name='description_short' input_value=$product->description_short max=$PS_PRODUCT_SHORT_DESC_LIMIT}
<p class="help-block">({l s='Appears in the product list(s), and on the top of the product page.'})</p>
</div>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="description" type="tinymce" multilang="true"}
<label class="control-label col-lg-3">{l s='Description:'}</label>
<div class="col-lg-5">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Appears in the body of the product page'}">
{l s='Description:'}
</span>
</label>
<div class="col-lg-8">
{include file="controllers/products/textarea_lang.tpl" languages=$languages input_name='description' input_value=$product->description}
<p class="help-block">({l s='Appears in the body of the product page'})</p>
</div>
</div>
{if $images}
<div class="alert">
{l s='Do you want an image associated with the product in your description?'}
<a class="addImageDescription" href="javascript:void(0);">{l s='Click here'}</a>.
<div class="row">
<div class="col-lg-9 col-offset-3">
<div class="alert">
{l s='Do you want an image associated with the product in your description?'}
<a class="addImageDescription" href="javascript:void(0);">{l s='Click here'}</a>.
</div>
</div>
</div>
<div id="createImageDescription" class="well" style="display:none">
@@ -342,26 +374,35 @@
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Image tag to insert:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='The tag to copy/paste into the description.'}">
{l s='Image tag to insert:'}
</span>
</label>
<div class="col-lg-4">
<input type="text" id="resultImage" name="resultImage" />
</div>
<p class="help-block">{l s='The tag to copy/paste into the description.'}</p>
<p class="help-block"></p>
</div>
</div>
{/if}
<div class="row">
<label class="control-label col-lg-3">{l s='Tags:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Tags separated by commas (e.g. dvd, dvd player, hifi)'} - {l s='Forbidden characters:'} !&lt;;&gt;;?=+#&quot;&deg;{}_$%">
{l s='Tags:'}
</span>
</label>
<div class="col-lg-5 translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if !$language.is_default}display: none;{/if}">
<input type="text" id="tags_{$language.id_lang}" name="tags_{$language.id_lang}"
value="{$product->getTags($language.id_lang, true)|htmlentitiesUTF8}" />
<p class="help-block" name="help_box">{l s='Forbidden characters:'} !&lt;;&gt;;?=+#&quot;&deg;{}_$%</p>
</div>
{/foreach}
<p class="help-block">{l s='Tags separated by commas (e.g. dvd, dvd player, hifi)'}</p>
</div>
</div>
@@ -114,23 +114,32 @@ $(document).ready(function () {
{include file="controllers/products/multishop/checkbox.tpl" field="wholesale_price" type="default"}
<div class="row">
<label class="control-label col-lg-3">{l s='Pre-tax wholesale price:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Wholesale price'}">
{l s='Pre-tax wholesale price:'}
</span>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>
<input maxlength="14" name="wholesale_price" id="wholesale_price" type="text" value="{{toolsConvertPrice price=$product->wholesale_price}|string_format:'%.2f'}" onchange="this.value = this.value.replace(/,/g, '.');" />
</div>
<p class="help-block">{l s='Wholesale price'}</p>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
<label class="control-label col-lg-3">{l s='Pre-tax retail price:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='The pre-tax retail price to sell this product'}">
{l s='Pre-tax retail price:'}
</span>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>
<input type="hidden" id="priceTEReal" name="price" value="{toolsConvertPrice price=$product->price}" />
<input size="11" maxlength="14" id="priceTE" name="price_displayed" type="text" value="{{toolsConvertPrice price=$product->price}|string_format:'%.2f'}" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();" />
</div>
<p class="help-block">{l s='The pre-tax retail price to sell this product'}</p>
</div>
<div class="row">
@@ -162,9 +171,9 @@ $(document).ready(function () {
</select>
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default" onclick="{$link->getAdminLink('AdminTaxRulesGroup')|escape:'htmlall':'UTF-8'}&addtax_rules_group&id_product={$product->id}" class="confirm_leave" {if $tax_exclude_taxe_option}disabled="disabled"{/if}>
<i class="icon-plus-sign"></i> {l s='Create'}
</button>
<a class="btn btn-link confirm_leave" href="{$link->getAdminLink('AdminTaxRulesGroup')|escape:'htmlall':'UTF-8'}&addtax_rules_group&id_product={$product->id}" {if $tax_exclude_taxe_option}disabled="disabled"{/if}>
<i class="icon-plus-sign"></i> {l s='Create new taxe'} <i class="icon-external-link-sign"></i>
</a>
</div>
</div>
</div>
@@ -184,12 +193,16 @@ $(document).ready(function () {
<div class="row" {if !$ps_use_ecotax} style="display:none;"{/if}>
{include file="controllers/products/multishop/checkbox.tpl" field="ecot" type="default"}
<label class="control-label col-lg-3">{l s='Eco-tax (tax incl.):'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='already included in price'}">
{l s='Eco-tax (tax incl.):'}
</span>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>
<input maxlength="14" id="ecotax" name="ecotax" type="text" value="{$product->ecotax|string_format:'%.2f'}" onkeyup="$('#priceType').val('TI');if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;" />
</div>
<span class="help-block">{l s='already included in price'}</span>
</div>
<div class="row" {if !$country_display_tax_label || $tax_exclude_taxe_option}style="display:none;"{/if} >
@@ -203,14 +216,18 @@ $(document).ready(function () {
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="unit_price" type="unit_price"}
<label class="control-label col-lg-3">{l s='Unit price:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='e.g. per lb.'}">
{l s='Unit price:'}
</span>
</label>
<div class="input-group col-lg-4">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>
<input maxlength="14" id="unit_price" name="unit_price" type="text" value="{$unit_price|string_format:'%.2f'}" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>
<span class="input-group-addon">{l s='per'}</span>
<input maxlength="10" id="unity" name="unity" type="text" value="{$product->unity|htmlentitiesUTF8}" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/>
</div>
<span class="help-block">{l s='e.g. per lb.'}</span>
</div>
{if $ps_tax && $country_display_tax_label}
@@ -221,7 +238,6 @@ $(document).ready(function () {
{$currency->prefix}<span id="unit_price_with_tax">0.00</span>{$currency->suffix}
{l s='per'} <span id="unity_second">{$product->unity}</span> {l s='with tax'}
</span>
</div>
</div>
</div>
@@ -263,8 +279,8 @@ $(document).ready(function () {
</div>
{if isset($specificPriceModificationForm)}
<hr/>
<legend>{l s='Specific prices'}</legend>
<div class="alert alert-info">
{l s='You can set specific prices for clients belonging to different groups, different countries, etc...'}
@@ -31,13 +31,12 @@
{else}
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Quantities"}
<div class="alert alert-info">
<p>{l s='This interface allows you to manage available quantities for sale for products. It also allows you to manage product combinations in the current shop.'}</p>
<p>{l s='You can choose whether or not to use the advanced stock management system for this product.'}</p>
<p>{l s='You can manually specify the quantities for the product/each product combination, or you can choose to automatically determine these quantities based on your stock (if advanced stock management is activated).'}</p>
<p>{l s='In this case, quantities correspond to the real-stock quantities in the warehouses connected with the current shop, or current group of shops.'}</p>
<br/>
<p>{l s='For packs: If it has products that use advanced stock management, you have to specify a common warehouse for these products in the pack.'}</p>
<p>{l s='Also, please note that when a product has combinations, its default combination will be used in stock movements.'}</p>
{l s='This interface allows you to manage available quantities for sale for products. It also allows you to manage product combinations in the current shop.'}<br/>
{l s='You can choose whether or not to use the advanced stock management system for this product.'}<br/>
{l s='You can manually specify the quantities for the product/each product combination, or you can choose to automatically determine these quantities based on your stock (if advanced stock management is activated).'}<br/>
{l s='In this case, quantities correspond to the real-stock quantities in the warehouses connected with the current shop, or current group of shops.'}<br/>
{l s='For packs: If it has products that use advanced stock management, you have to specify a common warehouse for these products in the pack.'}<br/>
{l s='Also, please note that when a product has combinations, its default combination will be used in stock movements.'}
</div>
{if $show_quantities == true}
@@ -62,7 +61,7 @@
{/if}
/>
{l s='I want to use the advanced stock management system for this product.'}
{if $stock_management_active == 0 && !$product->cache_is_pack}&nbsp;-&nbsp;{l s='This requires you to enable advanced stock management.'}
{if $stock_management_active == 0 && !$product->cache_is_pack}&nbsp;-&nbsp;<strong>{l s='This requires you to enable advanced stock management.'}</strong>
{else if $product->cache_is_pack}&nbsp;-&nbsp;{l s='This parameter depends on the product(s) in the pack.'}
{/if}
</label>
@@ -175,7 +174,6 @@
{/if}
{/if}
<hr>
<legend>{l s='Availability settings'}</legend>
{if !$has_attribute}
@@ -191,8 +189,13 @@
{if $ps_stock_management}
{include file="controllers/products/multishop/checkbox.tpl" field="available_now" type="default" multilang="true"}
<div class="row">
<label class="control-label col-lg-3">{l s='Displayed text when in-stock:'}</label>
<div class="col-lg-8">
<label class="control-label col-lg-5">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Forbidden characters:'} &#60;&#62;;&#61;#&#123;&#125;">
{l s='Displayed text when in-stock:'}
</span>
</label>
<div class="col-lg-5">
<div class="row">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
@@ -200,12 +203,17 @@
input_name='available_now'}
</div>
</div>
<p class="help-block" name="help_box">{l s='Forbidden characters:'} &#60;&#62;;&#61;#&#123;&#125;</p>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="available_later" type="default" multilang="true"}
<label class="control-label col-lg-3">{l s='Displayed text when back-ordereding is allowed:'}</label>
<div class="col-lg-8">
<label class="control-label col-lg-5">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Forbidden characters:'} &#60;&#62;;&#61;#&#123;&#125;">
{l s='Displayed text when back-ordereding is allowed:'}
</span>
</label>
<div class="col-lg-5">
<div class="row">
{include file="controllers/products/input_text_lang.tpl"
languages=$languages
@@ -213,11 +221,8 @@
input_name='available_later'}
</div>
</div>
<p class="help-block" name="help_box">{l s='Forbidden characters:'} &#60;&#62;;&#61;#&#123;&#125;</p>
</div>
{if !$countAttributes}
<label>{l s='Available date:'}</label>
<input id="available_date" name="available_date" value="{$product->available_date}" class="datepicker" type="text" />
@@ -29,7 +29,12 @@
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_title" type="default" multilang="true"}
<label class="control-label col-lg-3">{l s='Meta title:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Product page title: Leave blank to use the product name'}">
{l s='Meta title:'}
</span>
</label>
<div class="col-lg-8">
<div class="row">
{include file="controllers/products/input_text_lang.tpl"
@@ -37,13 +42,17 @@
input_name='meta_title'
input_value=$product->meta_title}
</div>
<p class="help-block">{l s='Product page title: Leave blank to use the product name'}</p>
</div>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_description" type="default" multilang="true"}
<label class="control-label col-lg-3">{l s='Meta description:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='A single sentence for the HTML header is needed. '}">
{l s='Meta description:'}
</span>
</label>
<div class="col-lg-8">
<div class="row">
{include file="controllers/products/input_text_lang.tpl"
@@ -52,26 +61,35 @@
input_value=$product->meta_description
}
</div>
<div class="help-block">{l s='A single sentence for the HTML header is needed. '}</div>
</div>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_keywords" type="default" multilang="true"}
<label class="control-label col-lg-3">{l s='Meta keywords:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='Keywords for HTML header, separated by commas.'}">
{l s='Meta keywords:'}
</span>
</label>
<div class="col-lg-8">
<div class="row">
{include file="controllers/products/input_text_lang.tpl" languages=$languages
input_value=$product->meta_keywords
input_name='meta_keywords'}
</div>
<p class="help-block">{l s='Keywords for HTML header, separated by commas.'}</p>
</div>
</div>
<div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="link_rewrite" type="default" multilang="true"}
<label class="control-label col-lg-3">{l s='Friendly URL:'}</label>
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='friendly URL from the product name.'}">
{l s='Friendly URL:'}
</span>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-9">
@@ -82,12 +100,10 @@
input_name='link_rewrite'}
</div>
</div>
<div class="col-lg-3">
<div class="col-lg-2">
<a class="btn btn-default" onmousedown="updateFriendlyURLByName();"><i class="icon-random"></i> {l s='Generate'}</a>
</div>
</div>
<div class="help-block">{l s='friendly URL from the product name.'}</div>
</div>
</div>
@@ -31,7 +31,7 @@
{/if}
<div class="row">
<label class="control-label col-lg-3">{l s='Width (package):'}</label>
<label class="control-label col-lg-5">{l s='Width (package):'}</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" name="width" type="text" value="{$product->width}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
@@ -40,7 +40,7 @@
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Height (package):'}</label>
<label class="control-label col-lg-5">{l s='Height (package):'}</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" name="height" type="text" value="{$product->height}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
@@ -49,7 +49,7 @@
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Depth (package):'}</label>
<label class="control-label col-lg-5">{l s='Depth (package):'}</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" name="depth" type="text" value="{$product->depth}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
@@ -58,7 +58,7 @@
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Weight (package):'}</label>
<label class="control-label col-lg-5">{l s='Weight (package):'}</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_weight_unit}</span>
<input maxlength="6" name="weight" type="text" value="{$product->weight}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
@@ -67,16 +67,27 @@
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Additional shipping cost (per quantity):'}</label>
<label class="control-label col-lg-5">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='A carrier tax will be applied.'}">
{l s='Additional shipping cost (per quantity):'}
</span>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix} {if $country_display_tax_label}({l s='tax excl.'}){/if}</span>
<input type="text" name="additional_shipping_cost" onchange="this.value = this.value.replace(/,/g, '.');" value="{$product->additional_shipping_cost|htmlentities}" />
</div>
<p class="help-block">{l s='A carrier tax will be applied.'}</p>
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Carriers:'}</label>
<label class="control-label col-lg-5">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='If no carrier selected, all carriers can be used to ship this product.'}">
{l s='Carriers:'}
</span>
</label>
<div class="col-lg-3">
<select name="carriers[]" id="carriers_restriction" multiple="multiple">
{foreach $carrier_list as $carrier}
@@ -85,7 +96,6 @@
</select>
<button class="btn btn-default" onclick="unselectAllCarriers(); return false;">{l s='Unselect all'}</button>
</div>
<p class="help-block">{l s='If no carrier selected, all carriers can be used to ship this product.'}</p>
</div>
<script>
@@ -23,5 +23,5 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}" class="default" title="{$action}" {if isset($name)}name="{$name}"{/if}>
<img src="../img/admin/asterisk.gif" alt="{$action}" />
<i class="icon-asterisk"></i> {$action}
</a>