From 5d839d97f098d3874aa1f335ef752c8a57e3fa79 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 13 Oct 2011 16:37:07 +0000 Subject: [PATCH] // Add stock avaibility --- admin-dev/tabs/AdminProducts.php | 90 ++++++++++++-------------------- classes/Product.php | 23 ++++++++ 2 files changed, 55 insertions(+), 58 deletions(-) diff --git a/admin-dev/tabs/AdminProducts.php b/admin-dev/tabs/AdminProducts.php index 5ddfc11c9..9e0d5f808 100644 --- a/admin-dev/tabs/AdminProducts.php +++ b/admin-dev/tabs/AdminProducts.php @@ -2843,14 +2843,7 @@ class AdminProducts extends AdminTab } }); }); - - - '.$this->l('Pre-tax wholesale price:').' - - '.($currency->format % 2 != 0 ? $currency->sign.' ' : '').''.($currency->format % 2 == 0 ? ' '.$currency->sign : '').' - '.$this->l('The wholesale price at which you bought this product').' - - '; + '; echo ' '.$this->l('Pre-tax retail price:').' @@ -3666,11 +3659,11 @@ class AdminProducts extends AdminTab { // Get all id_product_atribute - $attributes = $obj->getAttributeCombinaisons($this->context->language->id); + $attributes = $obj->getAttributesResume($this->context->language->id); if (empty($attributes)) $attributes[] = array( 'id_product_attribute' => 0, - 'attribute_name' => '' + 'attribute_designation' => '' ); // Get physical quantities & available quantities @@ -3687,7 +3680,7 @@ class AdminProducts extends AdminTab $availableQuantity[$attribute['id_product_attribute']] = StockAvailable::getStockAvailableForProduct((int)$obj->id, $attribute['id_product_attribute']); // Get all product designation - $productDesignation[$attribute['id_product_attribute']] = $obj->name[$this->context->language->id].' '.$attribute['attribute_name']; + $productDesignation[$attribute['id_product_attribute']] = rtrim($obj->name[$this->context->language->id].' - '.$attribute['attribute_designation'], ' - '); } $return = ' @@ -4202,56 +4195,37 @@ class AdminProducts extends AdminTab '; if (Configuration::get('PS_USE_ECOTAX')) echo' - - '.$this->l('Eco-tax:').' - '.($currency->format % 2 != 0 ? $currency->sign.' ' : '').''.($currency->format % 2 == 0 ? ' '.$currency->sign : '').' ('.$this->l('overrides Eco-tax on Information tab').') - '; + + '.$this->l('Eco-tax:').' + '.($currency->format % 2 != 0 ? $currency->sign.' ' : '').''.($currency->format % 2 == 0 ? ' '.$currency->sign : '').' ('.$this->l('overrides Eco-tax on Information tab').') + '; echo' - - '.$this->l('Initial stock:').' - - - - - '.$this->l('Stock movement:').' - - -    - -
-
'.$this->l('Choose the reason and enter the quantity that you want to increase or decrease in your stock').'
- - - - '.$this->l('Minimum quantity:').' - - -

'.$this->l('The minimum quantity to buy this product (set to 1 to disable this feature)').'

- - - - '.$this->l('Quantity in stock:').' - - - - '.$this->l('Available date:').' - -

'.$this->l('The available date when this product is out of stock').'

- - '; - // date picker include - includeDatepicker('available_date'); + + + '.$this->l('Minimum quantity:').' + + +

'.$this->l('The minimum quantity to buy this product (set to 1 to disable this feature)').'

+ + + + '.$this->l('Quantity in stock:').' + + + + '.$this->l('Available date:').' + +

'.$this->l('The available date when this product is out of stock').'

+ + '; + // date picker include + includeDatepicker('available_date'); echo ' -
- - '.$this->l('Image:').' - +
+ + '.$this->l('Image:').' +