change discount conditions

This commit is contained in:
Marion Muszynski 2017-06-13 16:12:10 +02:00
parent 5f4f10355e
commit 660c2c51be

View File

@ -35,11 +35,7 @@ include dirname(__FILE__).'/../../config/config.inc.php';
// Db::getInstance()->ExecuteS('
// UPDATE ps_discount
// SET
// `value` = 0,
// `id_discount_type` = 3,
// `minimal` = 10,
// `include_tax`= 0,
// `id_currency` = 0
// `include_tax`= 1,
// WHERE id_discount IN ('.implode(',',$discount_toclean).')
// ');
@ -93,7 +89,7 @@ function generateDiscount($id_customer)
$discount->cumulable = 0;
$discount->cumulable_reduction = 1;
$discount->minimal = 10;
$discount->include_tax = 0;
$discount->include_tax = 1;
$discount->cart_display = 0;
$discount->active = 1;
$discount->quantity = 1;