vit320 Posted October 21, 2013 Share Posted October 21, 2013 Anyone know where are topics about using two template inside a site? For example i want a template for products and another for documents. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 21, 2013 Share Posted October 21, 2013 "Where are topics about..." I think you are asking for a Software Developer's Kit. Unfortunately, there is no SDK for Cubecart. There is this: http://www.cubecartforums.org/docs/ but it is very sparse. We should be able to figure out how to do what you want. CubeCart has a main template which gives the theme its overall structure and layout, then within that are {PLACEHOLDERS} for all the various boxes. We can start by looking at /controllers/controller.index.inc.php. A statement at line 7 and again at line 90 (redundant, we can ignore this) sets the filename of the main template. If what you are wanting is a different overall structure for when index.php?_a=document, we can test for that. Just before the last line offline(); add: if ($_GET['_a'] == 'document') $global_template_file = 'doc_main.php'; Then, build your doc_main.php template file. Quote Link to comment Share on other sites More sharing options...
vit320 Posted October 22, 2013 Author Share Posted October 22, 2013 Ok i will try this and i wiil show you result. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.