
UPDATE `%%XC%%_products` SET `vendor_id` = (SELECT `profile_id` FROM `%%XC%%_profiles` WHERE `login`="vendor1@example.com" AND `order_id` IS null) WHERE `product_id` IN (29, 28, 31, 43, 44, 45, 46, 47, 48, 49, 50);
UPDATE `%%XC%%_product_translations` SET `name` = CONCAT(name, ' [Vendor 1]') WHERE `id` IN (29, 28, 31, 43, 44, 45, 46, 47, 48, 49, 50);

UPDATE `%%XC%%_products` SET `vendor_id` = (SELECT `profile_id` FROM `%%XC%%_profiles` WHERE `login`="partner2@example.com" AND `order_id` IS null) WHERE `product_id` IN (25, 26, 21, 22, 16, 17, 18, 42, 13, 6, 7, 1, 2, 3);
UPDATE `%%XC%%_product_translations` SET `name` = CONCAT(name, ' [Partner 2]') WHERE `id` IN (25, 26, 21, 22, 16, 17, 18, 42, 13, 6, 7, 1, 2, 3);

UPDATE `%%XC%%_products` SET `vendor_id` = (SELECT `profile_id` FROM `%%XC%%_profiles` WHERE `login`="seller3@example.com" AND `order_id` IS null) WHERE `product_id` IN (74, 5, 8, 9, 10, 11, 12, 14, 15, 19, 20, 23, 24);
UPDATE `%%XC%%_product_translations` SET `name` = CONCAT(name, ' [Seller 3]') WHERE `id` IN (4, 5, 8, 9, 10, 11, 12, 14, 15, 19, 20, 23, 24);

UPDATE `%%XC%%_products` SET `vendor_id` = (SELECT `profile_id` FROM `%%XC%%_profiles` WHERE `login`="merchant4@example.com" AND `order_id` IS null) WHERE `product_id` IN (27, 32, 35, 33, 34, 36, 37, 38, 39, 40, 30, 41);
UPDATE `%%XC%%_product_translations` SET `name` = CONCAT(name, ' [Merchant 4]') WHERE `id` IN (27, 32, 35, 33, 34, 36, 37, 38, 39, 40, 30, 41);

