New Zenner
- Join Date:
- Mar 2005
- Posts:
- 58
- Plugin Contributions:
- 0
Pricelist For Printing
#NEXT_X_ROWS_AS_ONE_COMMAND:4
SET @t1=5;
SELECT (@t1:=configuration_value) as t1
FROM configuration
WHERE configuration_key = 'PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW' limit 1;
UPDATE products_options SET products_options_images_per_row = @t1;
DELETE FROM configuration WHERE configuration_key = 'PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW';
I tried to use this code on the latest version of no_prefix_add-link-switch.sql included in the download
this is how i understood it should look:
#NEXT_X_ROWS_AS_ONE_COMMAND:4
SET @t1=5;
SELECT @pricelistid:=configuration_group_id from configuration_group WHERE configuration_group_title='Printable Price-list';
select @pricelistid;
INSERT INTO configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( '', 'Show Price List', 'SHOW_CATEGORIES_BOX_PRICELIST', 'true', 'If true Price-List link will show in Categories box', @pricelistid , 20, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );
and i still got the same error