
-- поправити вручну: Order History -> User Page -> left-main-columns.tpl
-- поправити вручну: Settings -> Checkout footer

UPDATE `qs_Page` SET `bodyTemplate` = 'left-main-columns.tpl' WHERE `handler` in ('user', 'userLogin');
UPDATE `qs_DraftPage` SET `bodyTemplate` = 'left-main-columns.tpl' WHERE `handler` in ('user', 'userLogin');

UPDATE `qs_Page` as `p`
JOIN `qs_PageItem` as `i` ON `i`.`idPage` = `p`.`id`
SET `p`.`bodyTemplate` = 'left-main-columns.tpl'
WHERE `i`.`type` IN ('ECommerce_Product_', 'ECommerce_Cart_', 'ECommerce_Checkout_', 'ECommerce_Checkout_LoginBlock_', 'ECommerce_Order_', 'ECommerce_Order_GuestView_');

UPDATE `qs_DraftPage` as `p`
JOIN `qs_DraftPageItem` as `i` ON `i`.`idPage` = `p`.`id`
SET `p`.`bodyTemplate` = 'left-main-columns.tpl'
WHERE `i`.`type` IN ('ECommerce_Product_', 'ECommerce_Cart_', 'ECommerce_Checkout_', 'ECommerce_Checkout_LoginBlock_', 'ECommerce_Order_', 'ECommerce_Order_GuestView_');
