Let\'s say I have two categegories, A and B.
I set A to use \'layout_a\' on Catalog -> Catalog Categories -> Click a category -> click custom design tab
I se
I found the answer by myself.
Open product controller located in /app/code/Mage/Catalog/controllers/ProductController.php
add the following code into _initProductLayout method
$update->addHandle('CATEGORY_'.$product->getCategoryId());
Open catalog layout xml located in /app/design/frontend/default/default/layout/catalog.xml
add
yourtemplate here