I'm working with a shopping cart (CS-cart) that uses smarty templates. Products are associated with a brand. When the product page renders i'm able to get the brand ID.
I also have custom .tpl files such as brand1.tpl brand2.tpl where the number represents the row id from the db table.
If I have the brand ID in a variable, would someone show me an example of how to include the custom template and dynamically use the brand ID variable in place of the number in the file name being included. Something like below but I don't think $bid is a way to insert the variable. Any help is appreciated
Thanks
{include file='brand$bid.tpl'}