I have 3 different product page layouts that I would like to display dependent on the information available about the products. Using traversal I have a class called P
P
I'm not sure if it's the good way to go, but you could probably use request.override_renderer = 'oneproduct.mako'.
request.override_renderer = 'oneproduct.mako'
If it is just a different way of displaying your products depending on the quantity, you should do the decision in the template.