|
|
|
@@ -22,48 +22,57 @@
|
|
|
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
|
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
|
|
|
*}
|
|
|
|
|
{if isset($product->id) && !$product->is_virtual}
|
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var msg_combination_1 = '{l s='Please choose an attribute.'}';
|
|
|
|
|
var msg_combination_2 = '{l s='Please choose a value.'}';
|
|
|
|
|
var msg_combination_3 = '{l s='You can only add one combination per attribute type.'}';
|
|
|
|
|
var msg_new_combination = '{l s='New combination'}';
|
|
|
|
|
var msg_cancel_combination = '{l s='Cancel combination'}';
|
|
|
|
|
|
|
|
|
|
var attrs = new Array();
|
|
|
|
|
var modifyattributegroup = "{l s='Modify this attribute combination.' js=1}";
|
|
|
|
|
attrs[0] = new Array(0, "---");
|
|
|
|
|
{foreach from=$attributeJs key=idgrp item=group}
|
|
|
|
|
attrs[{$idgrp}] = new Array(0
|
|
|
|
|
, '---'
|
|
|
|
|
{foreach from=$group key=idattr item=attrname}
|
|
|
|
|
, "{$idattr}", "{$attrname|addslashes}"
|
|
|
|
|
{/foreach}
|
|
|
|
|
);
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
populate_attrs();
|
|
|
|
|
|
|
|
|
|
$(".datepicker").datepicker({
|
|
|
|
|
prevText: '',
|
|
|
|
|
nextText: '',
|
|
|
|
|
dateFormat: 'yy-mm-dd'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{if isset($product->id) && !$product->is_virtual}
|
|
|
|
|
<input type="hidden" name="submitted_tabs[]" value="Combinations" />
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var attrs = new Array();
|
|
|
|
|
var modifyattributegroup = "{l s='Modify this attribute combination.' js=1}";
|
|
|
|
|
attrs[0] = new Array(0, "---");
|
|
|
|
|
{foreach from=$attributeJs key=idgrp item=group}
|
|
|
|
|
attrs[{$idgrp}] = new Array(0
|
|
|
|
|
, '---'
|
|
|
|
|
{foreach from=$group key=idattr item=attrname}
|
|
|
|
|
, "{$idattr}", "{$attrname|addslashes}"
|
|
|
|
|
{/foreach}
|
|
|
|
|
);
|
|
|
|
|
{/foreach}
|
|
|
|
|
</script>
|
|
|
|
|
<input type="hidden" name="submitted_tabs[]" value="Combinations" />
|
|
|
|
|
|
|
|
|
|
<h3>{l s='Add or modify combinations for this product.'}</h3>
|
|
|
|
|
<div class="alert alert-info">
|
|
|
|
|
{l s='Or use the'} <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}
|
|
|
|
|
<div class="alert alert-info" style="display:block">
|
|
|
|
|
{l s='Some combinations already exist. If you want to generate new combinations, the quantities for the existing combinations will be lost.'}<br/>
|
|
|
|
|
{l s='You can add a combination by clicking the link "Add new combination" on the toolbar.'}
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
{if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
|
|
|
|
|
<br />
|
|
|
|
|
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Combinations"}
|
|
|
|
|
{/if}
|
|
|
|
|
<h3>{l s='Add or modify combinations for this product.'}</h3>
|
|
|
|
|
<div class="alert alert-info">
|
|
|
|
|
{l s='Or use the'} <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}
|
|
|
|
|
<div class="alert alert-info" style="display:block">
|
|
|
|
|
{l s='Some combinations already exist. If you want to generate new combinations, the quantities for the existing combinations will be lost.'}<br/>
|
|
|
|
|
{l s='You can add a combination by clicking the link "Add new combination" on the toolbar.'}
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
{if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
|
|
|
|
|
<br />
|
|
|
|
|
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Combinations"}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="add_new_combination" class="panel" style="display: none;">
|
|
|
|
|
|
|
|
|
|
<div class="panel-heading">{l s='Add or modify combinations for this product.'}</div>
|
|
|
|
@@ -105,12 +114,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
populate_attrs();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
@@ -163,8 +166,6 @@
|
|
|
|
|
<span style="display:none;" id="attribute_wholesale_price_full">({l s='Overrides wholesale price on "Information" tab'})</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<label class="control-label col-lg-3" for="attribute_price_impact">
|
|
|
|
|
{include file="controllers/products/multishop/checkbox.tpl" field="attribute_price_impact" type="attribute_price_impact"}
|
|
|
|
@@ -182,7 +183,7 @@
|
|
|
|
|
<div id="span_impact" class="col-lg-8">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<label class="control-label col-lg-1" for="attribute_price">
|
|
|
|
|
{l s='of'}
|
|
|
|
|
{l s='of'}
|
|
|
|
|
</label>
|
|
|
|
|
<div class="input-group col-lg-5">
|
|
|
|
|
<div class="input-group-addon">
|
|
|
|
@@ -331,15 +332,6 @@
|
|
|
|
|
<i class="icon-calendar-empty"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$(".datepicker").datepicker({
|
|
|
|
|
prevText: '',
|
|
|
|
|
nextText: '',
|
|
|
|
|
dateFormat: 'yy-mm-dd'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
@@ -386,5 +378,5 @@
|
|
|
|
|
|
|
|
|
|
{$list}
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
|
</fieldset>
|
|
|
|
|
</fieldset>
|
|
|
|
|
{/if}
|