H.Numan Posted February 19, 2012 Share Posted February 19, 2012 Hi, I'm brand new in Prestashop. Someone told me last week about it. I'm very impressed, excellent shopping cart. But I'm not familiar with smarty tags. I got two simple questions to get me going on a template: 1- how do I insert normal html? <p>hello world!</p doesn't work. I added that to the header.tpl, it doesn't show up. 2- how do I insert a menu? I'd like to have the categories show as a horizontal menu. how do I do that? I know, very basic questions. I can code a template easily in Joomla, but this works quite a bit different. Thanks for any help, Numan Link to comment Share on other sites More sharing options...
Paulito Posted February 19, 2012 Share Posted February 19, 2012 (edited) Good mornng Numan, for part 2 of your question goto: Back Office > Modules > Positions > Transplant a Module, then from the "Module" dropdown box select the Module you reqire, then from the "Hook into" dropdown select where you want it to go, click save Paul Disregard what I have said above as does not work as I thought it would Paul Edited February 19, 2012 by perfumeskunk (see edit history) Link to comment Share on other sites More sharing options...
marecekloool Posted February 19, 2012 Share Posted February 19, 2012 question number one: smarty templates compile their files so any chage you make needs to delete the compile folder. there are two ways how to solve your problem: 1. go to: administration > preferences > performance and turn force compilation ON and turn cache OFF and you will have no need for emptying the compile folder to see any changes 2. after each change you make to a tmpl file empty this folder: tools/smarty/compile to see the changes Link to comment Share on other sites More sharing options...
Mark Hesketh Posted February 19, 2012 Share Posted February 19, 2012 Hi Numan, Smart files willvshow HTML just as you'd expect, it sounds like you need to switch off the performance settings as marecekloool says. You shouldn't need to delete the contents of the cache folder each time though, just do it the first time and if any irregular behaviour occurs. As for the menu, the new default theme for 1.5 has a menu module included that you could base yours off. A module is probably the easiest way of doing this.. You can download the theme and take a look at http://addons.prestashop.com/en/neutral/3337-prestashop-template-15.html Mark 1 Link to comment Share on other sites More sharing options...
loop54 Posted February 19, 2012 Share Posted February 19, 2012 K.I.S.S. (Keep it Simple, Stupid) Link to comment Share on other sites More sharing options...
fischbein Posted February 20, 2012 Share Posted February 20, 2012 hi all! i'm new in prestashop... how can I change "firstname lastname" to "lastname firstname" format? hungarian name format... Link to comment Share on other sites More sharing options...
Mark Hesketh Posted February 20, 2012 Share Posted February 20, 2012 Hi Fisch, Where are you wanting to make this change? Everywhere? This could involve a number of changes to various .tpl files in your theme. This isn't a problem, just have to track them down! Are you using the default theme or a custom one? Mark Link to comment Share on other sites More sharing options...
fischbein Posted February 20, 2012 Share Posted February 20, 2012 Hi Fisch, Where are you wanting to make this change? Everywhere? This could involve a number of changes to various .tpl files in your theme. This isn't a problem, just have to track them down! Are you using the default theme or a custom one? Mark Hi Mark! I use a custom theme... everywhere I want, if possible... and I want to change birth date format too now it's DD MM YY, but I need YY MM DD Thanks: Free Image Upload, ผลบอล Link to comment Share on other sites More sharing options...
fischbein Posted February 20, 2012 Share Posted February 20, 2012 these are easy problems I'm newbie Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 20, 2012 Share Posted February 20, 2012 I'm newbie Ignore him, that was a link-building account which has now been banned. -Mike Link to comment Share on other sites More sharing options...
fischbein Posted February 20, 2012 Share Posted February 20, 2012 Ignore him, that was a link-building account which has now been banned. -Mike Ok Link to comment Share on other sites More sharing options...
H.Numan Posted February 21, 2012 Author Share Posted February 21, 2012 Gentlemen, thank you for your advice. Exactly what I needed! I will keep it simple, but in order to keep it simple I need to know what to do... ;-) Link to comment Share on other sites More sharing options...
sixthmind Posted February 21, 2012 Share Posted February 21, 2012 As for the menu, the new default theme for 1.5 has a menu module included that you could base yours off. A module is probably the easiest way of doing this.. You can download the theme and take a look at http://addons.presta...emplate-15.html Mark I am new with PrestaShop and I need to create a vertical menu in the left column consisting of pages and subpages. The subpages of relevant page would should only when on that parent page. I had a look at new theme, but the menu on top is not what I could use. would you know how to start creating this custom menu in the left column or point me to the right direction? is there a free module? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 I am new with PrestaShop and I need to create a vertical menu in the left column consisting of pages and subpages. The subpages of relevant page would should only when on that parent page. I had a look at new theme, but the menu on top is not what I could use. would you know how to start creating this custom menu in the left column or point me to the right direction? is there a free module? Hi sixthmind, This is not the place to post this question. Please post your issue as a separate thread to avoid splintering the discussion, per the rules of the PrestaShop forums. -Mike Link to comment Share on other sites More sharing options...
fischbein Posted February 21, 2012 Share Posted February 21, 2012 Hi Mark! I use a custom theme... everywhere I want, if possible... and I want to change birth date format too now it's DD MM YY, but I need YY MM DD Thanks: Free Image Upload, ผลบอล I got it! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 Hi fischbein, If you've resolved your issue, can you please post your solution for other users who may have similar problems in the future? -Mike Link to comment Share on other sites More sharing options...
fischbein Posted February 23, 2012 Share Posted February 23, 2012 Mark wrote as the theme. tpl files to be modified .. but this solution was initially ... Then I visitedthe website of the creator of the topic where I found the following: If you have installed a new theme for PrestaShop 1.4 and need to edit some of the theme files (the .tpl files) — you’ll need to set the smarty compilation to YES. The setting is in your admin area: Back Office > Preferences > Performance > Force compile > YES If you do not change the setting to YES, your site may not reflect the changes you’ve made to your theme files — as PrestaShop will get the content from the smarty cache, not from your newly edited files. After you have changed the setting, edit your theme file, upload and check the front office if your edits are displaying correctly. When you have completed all your modifications to your theme files and confirmed that your site is displaying as you want, set the Force Compile setting back to NO. :D Hi fischbein, If you've resolved your issue, can you please post your solution for other users who may have similar problems in the future? -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 23, 2012 Share Posted February 23, 2012 Thanks fischbein! -Mike Link to comment Share on other sites More sharing options...
H.Numan Posted February 24, 2012 Author Share Posted February 24, 2012 Mark, I downloaded the template http://addons.presta...emplate-15.html. It is exactly what I needed. There is only one problem I don't know how to solve: The horizontal menu has all important links under the home link. That won't do. How do I set the various categories next to the home link: home - cat1 - cat2 - cat3 - contact us - etc. added: I think I figured it out - almost... I need to create top categories outside the home category. That's where I get stuck. Sub categories is no problem, but how do you create a new top category equal to the home category? Link to comment Share on other sites More sharing options...
Mark Hesketh Posted February 28, 2012 Share Posted February 28, 2012 Hey, did you manage to sort this? If not you need to go to the module config in the back office, filter by Top Horizontal Menu to get the menu, click configure, and you'll be able to see all the sections you can add to the menu. You'll be able to pick your subcategories here, you dont need to apply them outside the home category, in fact I'm 99% sure this isn't possible. Link to comment Share on other sites More sharing options...
Recommended Posts