Bianca007 Posted September 30, 2009 Share Posted September 30, 2009 Hello,I have a question about the template system. As far as I understand, templates work like this:header/footer .tpl files include the hooks to top, left, right and bottom hooksThe hooks are like containers that display various modules depending on what you install in admin areaThose modules then show up on the site. To edit them, you edit the corresponding files in the modules folder.Correct? If so, what I want like to know is: Can I skip one of those steps by doing the following:inside header/footer .tpl files, instead of adding hook tags, can I add/reference the actual module I want to use?? Is that possible? I want to design my site, which is actually table based, by splitting the template into the header and footer files and then add the modules "tags" (if there are any) to the exact place I want it to appear. I know that in some php programs, it works this way and you can add the modules/blocks by adding tags like: {$Blocks->wishlist}Would this work? And is so, what is the tag format used to reference/call a block?Thanks in advance. Link to comment Share on other sites More sharing options...
Bianca007 Posted October 1, 2009 Author Share Posted October 1, 2009 Okay I sorta got it working by putting the code directly into my header/footer files. Would still like to know if there are any special tag/names for the blocks so that I can call them directly (without using the hook). If anyone knows, I would appreciate some help.Thanks Link to comment Share on other sites More sharing options...
cagrie Posted November 22, 2009 Share Posted November 22, 2009 in cs-cart, hooks are usefull in maintaining design&functianity;intact after an upgrade. it should be so in presta too.so whenever possible, u should use hooks. Link to comment Share on other sites More sharing options...
Bianca007 Posted November 28, 2009 Author Share Posted November 28, 2009 I imagine that is very true (and I am worried about future upgrades) but I cannot think of/find another way to be able to REALLY customize this cart without breaking everything up. If there is a way to completely customize the cart without touching the main structure, nobody seems to be willing to share this info. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now