[*] BO : add an available date when product is out of stock
This commit is contained in:
@@ -1177,6 +1177,7 @@ CREATE TABLE `PREFIX_product` (
|
||||
`text_fields` tinyint(4) NOT NULL default '0',
|
||||
`active` tinyint(1) unsigned NOT NULL default '0',
|
||||
`available_for_order` tinyint(1) NOT NULL default '1',
|
||||
`available_date` datetime NOT NULL,
|
||||
`condition` ENUM('new', 'used', 'refurbished') NOT NULL DEFAULT 'new',
|
||||
`show_price` tinyint(1) NOT NULL default '1',
|
||||
`indexed` tinyint(1) NOT NULL default '0',
|
||||
@@ -1209,6 +1210,7 @@ CREATE TABLE `PREFIX_product_attribute` (
|
||||
`unit_price_impact` decimal(17,2) NOT NULL default '0.00',
|
||||
`default_on` tinyint(1) unsigned NOT NULL default '0',
|
||||
`minimal_quantity` int(10) unsigned NOT NULL DEFAULT '1',
|
||||
`available_date_combi` datetime NOT NULL,
|
||||
PRIMARY KEY (`id_product_attribute`),
|
||||
KEY `product_attribute_product` (`id_product`),
|
||||
KEY `reference` (`reference`),
|
||||
@@ -1908,4 +1910,4 @@ CREATE TABLE `PREFIX_discount_shop` (
|
||||
`id_shop` INT( 11 ) UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (`id_discount`, `id_shop`),
|
||||
KEY `id_shop` (`id_shop`)
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||
|
||||
@@ -70,4 +70,8 @@ INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VAL
|
||||
('PS_SHOW_NEW_CUSTOMERS', '1', NOW(), NOW()),
|
||||
('PS_SHOW_NEW_MESSAGES', '1', NOW(), NOW()),
|
||||
('PS_FEATURE_FEATURE_ACTIVE', '1', NOW(), NOW()),
|
||||
('PS_COMBINATION_FEATURE_ACTIVE', '1', NOW(), NOW());
|
||||
('PS_COMBINATION_FEATURE_ACTIVE', '1', NOW(), NOW());
|
||||
|
||||
ALTER TABLE `PREFIX_product` ADD `available_date` DATETIME NOT NULL AFTER `available_for_order`
|
||||
|
||||
ALTER TABLE `ps_product_attribute` ADD `available_date_combi` DATETIME NOT NULL
|
||||
|
||||
Reference in New Issue
Block a user