Advertisement
Guest User

Conversion

a guest
Jan 25th, 2015
1,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.83 KB | None | 0 0
  1. /* categories */
  2. DELETE FROM configuration WHERE configuration_key = 'SHOW_COUNTS';
  3.  
  4. /* counter */
  5. DROP TABLE IF EXISTS counter;
  6. DROP TABLE IF EXISTS counter_history;
  7.  
  8. /* store name */
  9. UPDATE configuration SET configuration_description = 'The name of my store, used online and on printable documents' WHERE configuration_key = 'STORE_NAME';
  10.  
  11. /* store address */
  12. UPDATE configuration SET configuration_key = 'STORE_ADDRESS'  WHERE configuration_key = 'STORE_NAME_ADDRESS';
  13. UPDATE configuration SET configuration_title = 'Store Address' WHERE configuration_key = 'STORE_ADDRESS';
  14. UPDATE configuration SET configuration_description = 'This is the Address of my store used on printable documents and displayed online' WHERE configuration_key = 'STORE_ADDRESS';
  15.  
  16. /* store phone */
  17. INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Store Phone', 'STORE_PHONE', '555-1234', 'This is the phone number of my store used on printable documents and displayed online', '1', '19', 'tep_cfg_textarea(', now());
  18.  
  19. /* stock */
  20. UPDATE configuration SET configuration_value = '<i class="glyphicon glyphicon-asterisk"></i>' WHERE configuration_key = 'STOCK_MARK_PRODUCT_OUT_OF_STOCK';
  21.  
  22. /* logo */
  23. INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Store Logo', 'STORE_LOGO', 'store_logo.png', 'This is the filename of your Store Logo.  This should be updated at admin > configuration > Store Logo', 6, 1000, now());
  24.  
  25. /* bootstrap config */
  26. SELECT @next_id:=MAX(configuration_group_id) FROM configuration_group;
  27. INSERT INTO configuration_group VALUES (@next_id+1, 'Bootstrap Setup', 'Basic Bootstrap Options', @next_id+1, '1');
  28.  
  29. SELECT @this_id:=MAX(configuration_group_id) FROM configuration_group;
  30. INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Bootstrap Container', 'BOOTSTRAP_CONTAINER', 'container-fluid', 'What type of container should the page content be shown in? See http://getbootstrap.com/css/#overview-container', @this_id, '1', 'tep_cfg_select_option(array(\'container-fluid\', \'container\'), ', now());
  31. INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Bootstrap Content', 'BOOTSTRAP_CONTENT', '8', 'What width should the page content default to?  (8 = two thirds width, 6 = half width, 4 = one third width) Note that the Side Column(s) will adjust automatically.', @this_id, '2', 'tep_cfg_select_option(array(\'8\', \'6\', \'4\'), ', now());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement