Johnson, on Apr 13 2004, 04:14 PM, said:
effour, on Apr 13 2004, 05:10 PM, said:
...I cant figure out what is meant by
Quote
"Set '16' to a higher value - look at the last entry in your configuration table and set this one as the next."
Browse the table - we are looking for the highest entry for 'configuration_id' - change '16' in the master.sql file to one higher.
This problem can be avoided by changing the SQL file to
INSERT INTO configuration_group VALUES ('', 'Slave Products', 'Slave Product Listing - configuration options', 16, 1);
SET @configuration_group_id = LAST_INSERT_ID();
INSERT INTO configuration VALUES ('', 'Display Slave Product Name', 'MASTER_LIST_NAME', '5', 'Do you wish to display the products name?', @configuration_group_id, 1, '2003-11-17 20:22:53', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Price', 'MASTER_LIST_PRICE', '13', 'Do you want to display the Product Price?', @configuration_group_id, 3, '2003-11-16 20:47:55', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Manufacturer Name', 'MASTER_LIST_MANUFACTURER', '0', 'Do you want to display the Product Manufacturer Name?', 16, 4, NULL, '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Image', 'MASTER_LIST_IMAGE', '0', 'Do you want to display the Product Image?', @configuration_group_id, 8, '2003-11-10 21:38:06', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Model', 'MASTER_LIST_MODEL', '1', 'Do you want to display the Product Model?', @configuration_group_id, 2, '2003-11-16 22:10:58', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Quantity', 'MASTER_LIST_QUANTITY', '0', 'Do you want to display the Product Quantity?', @configuration_group_id, 6, '2003-11-09 22:49:47', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Weight', 'MASTER_LIST_WEIGHT', '0', 'Do you want to display the Product Weight?', @configuration_group_id, 5, NULL, '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', 'MASTER_PREV_NEXT_BAR_LOCATION', '2', ' Sets the location of the Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', @configuration_group_id, 12, '2003-11-10 01:02:58', '2003-11-04 23:28:38', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display the Buy Now Column', 'MASTER_LIST_BUY_NOW', '10', 'Do you want to display the Buy Now column?', @configuration_group_id, 9, '2003-11-12 19:02:59', '2003-11-09 20:38:04', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Display Slave Product Description', 'MASTER_LIST_DESCRIPTION', '2', 'Set to 0 to disable, set to 99 to enable.', @configuration_group_id, 10, '2003-11-17 19:02:49', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Length of Truncated Product Description', 'MASTER_LIST_DESCRIPTION_LENGTH', '100', 'How many characters would you like to display?', @configuration_group_id, 11, '2003-11-10 23:36:52', '2003-11-10 18:51:26', NULL, NULL);
ALTER TABLE products ADD products_master int(11) NOT NULL default '0';
ALTER TABLE products ADD products_master_status tinyint(2) NOT NULL default '0';
ALTER TABLE products ADD products_listing_status tinyint(2) NOT NULL default '1';Then one doesn't need to worry about synchronizing the rows in the configuration and configuration_group tables manually.
Hth,
Matt
Always backup before making changes.