Jump to content

2 beginner's questions


Recommended Posts

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

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 by perfumeskunk (see edit history)
Link to comment
Share on other sites

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

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

  • Like 1
Link to comment
Share on other sites

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

 

di-PR3A.png Thanks: Free Image Upload, ผลบอล

Link to comment
Share on other sites

 

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

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

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 :D :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

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

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.

 

33ud7uu.jpg

 

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

×
×
  • Create New...