diff --git a/admin-dev/themes/template/products/quantities.tpl b/admin-dev/themes/template/products/quantities.tpl index bf38b7016..5810a1541 100644 --- a/admin-dev/themes/template/products/quantities.tpl +++ b/admin-dev/themes/template/products/quantities.tpl @@ -1,3 +1,95 @@ + +
+

{l s='This interface allows you to manage the available quantities for sale of the current product and its combinations on the current shop.'}

+

{l s='You can manually specify the quantities for the product / each product combinations, or choose to automatically determine these quantities based on your stock.'}

+

{l s='In this case, the quantities correspond to the quantitites of the real stock in the warehouses associated to the current shop.'}

+
+
+ + + + + + +
+ {l s='Available quantities for sale'} +
+
+ + + + + + + + + + + + + + + + + + + +
+ depends_on_stock == 1}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/> + +

+
+ depends_on_stock == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/> + +

+
+ + + + + + + + + {foreach from=$attributes item=attribute} + + + + + {/foreach} + +
{l s='Quantity'}{l s='Designation'}
+ {$available_quantity[$attribute['id_product_attribute']]} + + {$product_designation[$attribute['id_product_attribute']]}
+
+ + + + + + + +
+ out_of_stock == 0}checked="checked" {/if} id="out_of_stock_1" type="radio" checked="checked" value="0" class="out_of_stock" name="out_of_stock"> + +
+ out_of_stock == 1} 'checked="checked" {/if} id="out_of_stock_2" type="radio" value="1" class="out_of_stock" name="out_of_stock"> + +
+ out_of_stock == 2} 'checked="checked" {/if} id="out_of_stock_3" type="radio" value="2" class="out_of_stock" name="out_of_stock"> + +
+
+ - -

{l s='This interface ...'}

- -
- - - - - - -
- {l s='Available quantities for sale'} -
-
- - - - - - - - - - - - - - - - - - - -
- depends_on_stock == 1}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/> - -

-
- depends_on_stock == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/> - -

-
- - - - - - - - - {foreach from=$attributes item=attribute} - - - - - {/foreach} - -
{l s='Quantity'}{l s='Designation'}
- {$available_quantity[$attribute['id_product_attribute']]} - - {$product_designation[$attribute['id_product_attribute']]}
-
- - - - - - - -
- out_of_stock == 0}checked="checked" {/if} id="out_of_stock_1" type="radio" checked="checked" value="0" class="out_of_stock" name="out_of_stock"> - -
- out_of_stock == 1} 'checked="checked" {/if} id="out_of_stock_2" type="radio" value="1" class="out_of_stock" name="out_of_stock"> - -
- out_of_stock == 2} 'checked="checked" {/if} id="out_of_stock_3" type="radio" value="2" class="out_of_stock" name="out_of_stock"> - -
-
\ No newline at end of file + \ No newline at end of file diff --git a/admin-dev/themes/template/products/suppliers.tpl b/admin-dev/themes/template/products/suppliers.tpl index 89433c2aa..9a06f65cb 100644 --- a/admin-dev/themes/template/products/suppliers.tpl +++ b/admin-dev/themes/template/products/suppliers.tpl @@ -1,3 +1,8 @@ +
+

{l s='This interface allows you to specify the suppliers of the current product and eventually its combinations.'}

+

{l s='It is also possible to specify for each product/product combinations the supplier reference according to previously associated suppliers.'}

+
+
@@ -56,7 +61,7 @@

{l s='You can specify product reference(s) for each supplier associated.'}

-
+
{foreach from=$associated_suppliers item=supplier}

{$supplier->name}

@@ -95,8 +100,72 @@ \ No newline at end of file diff --git a/admin-dev/themes/template/products/warehouses.tpl b/admin-dev/themes/template/products/warehouses.tpl index f0ee0e0b3..fd43c0a1f 100644 --- a/admin-dev/themes/template/products/warehouses.tpl +++ b/admin-dev/themes/template/products/warehouses.tpl @@ -1,3 +1,8 @@ +
+

{l s='This interface allows you to specify in which warehouses the product is stocked.'}

+

{l s='It is also possible to specify for each product/product combinations its location in each warehouse.'}

+
+
@@ -16,54 +21,80 @@ {l s='Create new warehouse'}{l s='Create new warehouse'} - - -
+
{foreach from=$warehouses item=warehouse}

{$warehouse['name']}

- + - {foreach from=$attributes item=attribute} - {assign var=location value=''} - {assign var=selected value=''} - {foreach from=$associated_warehouses item=aw} - {if $aw->id_product == $attribute['id_product'] && $aw->id_product_attribute == $attribute['id_product_attribute'] && $aw->id_warehouse == $warehouse['id_warehouse']} - {assign var=location value=$aw->location} - {assign var=selected value=true} - {/if} + {foreach from=$attributes item=attribute} + {assign var=location value=''} + {assign var=selected value=''} + {foreach from=$associated_warehouses item=aw} + {if $aw->id_product == $attribute['id_product'] && $aw->id_product_attribute == $attribute['id_product_attribute'] && $aw->id_warehouse == $warehouse['id_warehouse']} + {assign var=location value=$aw->location} + {assign var=selected value=true} + {/if} + {/foreach} + + + + + {/foreach} - - - + + + + + - {/foreach}
{l s='In the warehouse?'}{l s='In the warehouse?'} {l s='product name'} {l s='location in the warehouse (optionnal)'}
+ {$product_designation[$attribute['id_product_attribute']]} +
- {$product_designation[$attribute['id_product_attribute']]} -  
{l s='Mark all products available in the current warehouse.'}
{/foreach}

 

- +
\ No newline at end of file diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 8bb8f356b..d86f7b727 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -1787,12 +1787,12 @@ class AdminProductsControllerCore extends AdminController { $this->toolbar_btn['save'] = array( 'short' => 'Save', - 'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id, + 'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id, 'desc' => $this->l('Save'), ); $this->toolbar_btn['save-and-stay'] = array( 'short' => 'SaveAndStay', - 'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id, + 'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id, 'desc' => $this->l('Save and stay'), ); }