// Add stock avaibility

This commit is contained in:
mDeflotte
2011-10-13 15:58:29 +00:00
parent 733653e7a5
commit 3105fc5ddc
12 changed files with 634 additions and 198 deletions

View File

@@ -83,6 +83,23 @@ if (Tools::isSubmit('ajaxProductManufacturers'))
die('['.implode(',', $jsonArray).']');
}
}
if (Tools::isSubmit('ajaxProductQuantity'))
{
require_once(dirname(__FILE__).'/tabs/AdminCatalog.php');
$catalog = new AdminCatalog();
$admin = new AdminProducts();
$languages = Language::getLanguages(false);
$defaultLanguage = (int)(Configuration::get('PS_LANG_DEFAULT'));
$product = new Product((int)(Tools::getValue('id_product')));
if (!Validate::isLoadedObject($product))
die (Tools::displayError('Product cannot be loaded'));
AdminTab::$currentIndex = 'index.php?tab=AdminCatalog';
echo $admin->ajaxProductQuantity($product);
}
if (Tools::isSubmit('ajaxReferrers'))
{
require('tabs/AdminReferrers.php');