diff --git a/admin-dev/themes/default/template/controllers/products/quantities.tpl b/admin-dev/themes/default/template/controllers/products/quantities.tpl index 0ac552603..ec9872352 100644 --- a/admin-dev/themes/default/template/controllers/products/quantities.tpl +++ b/admin-dev/themes/default/template/controllers/products/quantities.tpl @@ -51,7 +51,7 @@
- {if $show_quantities == true && !$product->cache_is_pack} + {if $show_quantities == true} @@ -60,27 +60,65 @@ is_virtual}style="display:none;"{/if} class="stockForVirtualProduct"> - advanced_stock_management == 1 && $stock_management_active == 1}value="1" checked="checked"{else}value="0"{/if} {if $stock_management_active == 0}disabled="disabled" {/if} - type="checkbox" name="advanced_stock_management" class="advanced_stock_management" id="advanced_stock_management" /> - + advanced_stock_management == 1 && $stock_management_active == 1} + value="1" checked="checked" + {else} + value="0" + {/if} + {if $stock_management_active == 0 || $product->cache_is_pack} + disabled="disabled" + {/if} + type="checkbox" name="advanced_stock_management" class="advanced_stock_management" id="advanced_stock_management" /> +

is_virtual}style="display:none;"{/if} class="stockForVirtualProduct"> - depends_on_stock == 1 && $stock_management_active == 1}checked="checked" {/if} {if $stock_management_active == 0 || $product->advanced_stock_management == 0}disabled="disabled" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/> - + depends_on_stock == 1 && $stock_management_active == 1} + checked="checked" + {/if} + {if $stock_management_active == 0 || $product->advanced_stock_management == 0 || $product->cache_is_pack} + disabled="disabled" + {/if} + type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/> +

is_virtual}style="display:none;"{/if} class="stockForVirtualProduct"> - depends_on_stock == 0 || $stock_management_active == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/> - + depends_on_stock == 0 || $stock_management_active == 0} + checked="checked" + {/if} + type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/> +

+ {if isset($pack_quantity)} + + +

{l s='Given the quantities of the products in this pack, the maximum quantity should be: '} {$pack_quantity}

+ + + {/if} @@ -143,10 +181,6 @@
- {elseif $product->cache_is_pack} -
-

{l s='It is not possible to manage quantities when you are managing a pack.'}

-
{else}

{l s='It is not possible to manage quantities when : '}

@@ -177,7 +211,7 @@ - {include file="controllers/products/input_text_lang.tpl" + {include file="products/input_text_lang.tpl" languages=$languages input_value=$product->available_now input_name='available_now'} @@ -187,7 +221,7 @@ - {include file="controllers/products/input_text_lang.tpl" + {include file="products/input_text_lang.tpl" languages=$languages input_value=$product->available_later input_name='available_later'} @@ -250,14 +284,14 @@ { if (msg.error) { - showAjaxError('{l s='Error durring saving data'}'); + showAjaxError(msg.error); return; } showAjaxSuccess('{l s='Data saved'}'); }, error: function(msg) { - showAjaxError('{l s='Error durring saving data'}'); + showAjaxError(msg.error); } }); };