[+] CORE : now you can choose the redirect option when your product is disable
This commit is contained in:
+9
-1
@@ -163,7 +163,13 @@ class ProductCore extends ObjectModel
|
||||
|
||||
/** @var boolean Product statuts */
|
||||
public $active = true;
|
||||
|
||||
|
||||
/** @var boolean Product statuts */
|
||||
public $redirect_type = '';
|
||||
|
||||
/** @var boolean Product statuts */
|
||||
public $id_product_redirected = 0;
|
||||
|
||||
/** @var boolean Product available for order */
|
||||
public $available_for_order = true;
|
||||
|
||||
@@ -272,6 +278,8 @@ class ProductCore extends ObjectModel
|
||||
'text_fields' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedInt'),
|
||||
'uploadable_files' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedInt'),
|
||||
'active' => array('type' => self::TYPE_BOOL, 'shop' => true, 'validate' => 'isBool'),
|
||||
'redirect_type' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'),
|
||||
'id_product_redirected' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedId'),
|
||||
'available_for_order' => array('type' => self::TYPE_BOOL, 'shop' => true, 'validate' => 'isBool'),
|
||||
'available_date' => array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
|
||||
'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('new', 'used', 'refurbished'), 'default' => 'new'),
|
||||
|
||||
Reference in New Issue
Block a user