UPDATE content_manager z SET z.content_text = "%(text_source)s" WHERE z.content_id IN ('261','257', '359','410');
UPDATE gm_contents z SET gm_value = "%(text_source)s" WHERE gm_key = 'GM_SCROLLER_CONTENT'
UPDATE configuration set configuration_value = '98.00' where configuration_key = 'MODULE_SHIPPING_FREEAMOUNT_AMOUNT';
-- Footer
UPDATE content_manager SET content_text = REPLACE (content_text, 'heute ist PortoFREItag', 'versandkostenfrei ab 98 Euro') WHERE content_id = 377;
UPDATE gm_configuration
SET gm_value = (CASE
WHEN (hour(now()) = 23) THEN 0
ELSE gm_value
END) WHERE `gm_key` LIKE 'GM_SLIDER_INDEX_ID';
REPLACE INTO `specials`(`specials_id`, `products_id`, `specials_quantity`, `specials_new_products_price`, `specials_date_added`, `specials_last_modified`, `expires_date`, `date_status_change`, `status`) SELECT NULL, p.`products_id`, 10000, round(products_price*0.80,0)-0.10, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, DATE_ADD(CURRENT_TIMESTAMP, INTERVAL 1 HOUR), CURRENT_TIMESTAMP, 1 FROM `products` p LEFT JOIN products_description pd on pd.products_id = p.products_id WHERE pd.language_id = 2 AND products_name LIKE "%Repair%" ;
REPLACE INTO `specials`(`specials_id`, `products_id`, `specials_quantity`, `specials_new_products_price`, `specials_date_added`, `specials_last_modified`, `expires_date`, `date_status_change`, `status`) SELECT NULL, p.`products_id`, 10000, round(products_price*0.80,0)-0.10, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, DATE_ADD(CURRENT_TIMESTAMP, INTERVAL 1 HOUR), CURRENT_TIMESTAMP, 1 FROM `products` p LEFT JOIN products_description pd on pd.products_id = p.products_id WHERE pd.language_id = 2 AND p.products_id = 444;