Jump to content

Add Menu


Recommended Posts

Hello,

Im all new to prestashop, it looks like a great script.
But im missing the basic setup documentation, i need to know how to add,remove,change menu items.
On the top i have contact, sitemap and bookmark, but i want to add Home aswell.
Hope that someone can give me some pointers :-)

Link to comment
Share on other sites

Hi Roderick and welcome

Prestashop uses modules to display these things and its the:

Permanent links block v0.1
Adds a block that displays permanent links such as sitemap, contact, etc.

to do this, in the modules (the actual files not backoffice>>modules) you can edit the modules tpl file to make additional changes, open up the tpl file in the Permanent links block and you should see the HTML etc

BTW: Dont have time to open it myself right now - but I think that is the right one

Your global.css file in your theme controls the styling of the site also

Link to comment
Share on other sites

Hello and thank you for your reply.

So there is no easy way, for someone without html,php,javascript nolidge to just ad a button HOME linked to index.php?
I find this very strange, if a client want to go back to the first page he/she cannot navigate back in the website they have to use backbutton of IE or FF.

I this true?

Link to comment
Share on other sites

don't forget the main company logo is usually a link back to home page

But I am afraid, if you have no HTML experience, you will need someone to tell you what to add to those links - and depending on your design, if you need an icon etc you will need to alter css.

This is html from the file, as you can see theer are list items , the

><!-- Block permanent links module HEADER -->
</pre>
<ul>
{l s='contact' mod='blockpermanentlinks'}
{l s='sitemap' mod='blockpermanentlinks'}

       [removed]writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');[removed]

</ul>
<br><!-- /Block permanent links module HEADER 



So, its its one language and you want to just add it a home link for this site, just ad another list item and don't worry about the language files, so if you want this at start then add it as here, then style your CSS /add or add icon via css
(NOTE: This is not the full HTMl, just enough to show hone link as first list item in UL)

></pre>
<ul>
Home
{l s='contact' mod='blockpermanentlinks'}



Hopefully that right, as I have not actually tested

Link to comment
Share on other sites

Hello,

Thank you for your help on this :)

I did what you said but now my template goes carzy look:
http://www.dushiwebsites.nl/webwinkel/
This is my code:
<!-- Block permanent links module HEADER -->


<!-- /Block permanent links module HEADER -->
Link to comment
Share on other sites

if you mean the search bar is now dropped sown so the account info on right is also pushed down behind right column, you need to edit your CSS. With the Home text added, there is no longer enough room to get the search bar on the same line

You could in modules remove search and put this in side column - but whatever, you need to decide how you want site to look

Link to comment
Share on other sites

If you want to add a link into the header as you say and in your theme there is no room, you have no choice but to edit the css -I think that goes for any store

However, Prestashop has a lot of modules and you have a great deal of freedom to move those around. Maybe you should simply use one of the other links modules, then configure it and just add the home link and choose to display this in your left or right column. Then you don't have to modify anything in the files

Link to comment
Share on other sites

  • 2 weeks later...

Hi there,

I have found a solution to this problem.
I went to the file Modules-> blockcategories -> blockcategories.tpl
And added changed the code to:

[removed][removed]

<!-- Block categories module -->

{l s='Categories' mod='blockcategories'}


Home
       {foreach from=$blockCategTree.children item=child name=blockCategTree}
           {if $smarty.foreach.blockCategTree.last}
                       {include file=$branche_tpl_path node=$child last='true'}
           {else}
                       {include file=$branche_tpl_path node=$child}
           {/if}
       {/foreach}

    


Now i have a button on the left with my link to the home page :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...