Jump to content

Currency & Language Blocks Problem


Recommended Posts

I have been modifying the standard template and was doing OK until I got to the point of moving the currency and language blocks from the top to the right. I also moved the Permanent links block as I didn't want any of this on the top.

I hooked them all up to the right and then deleted them from the top and only the permanent links showed but not the currency or language modules.

I then deleted them from the right hand side and tried to put them back up the top but they wouldn't reappear so now it seems that they are lost forever.

Is there any way of getting round this problem and can these actually be moved from the top to a different place.

Link to comment
Share on other sites

So I assume that nobody either knows how to do this or why it happens.

Is it a bug or is it me?

Either way a post for help on a forum that doesn't get answered will always look poor for the system.

Pity as I really like it and actually consider it to have far more about it than others in the same area.

Link to comment
Share on other sites

Try something like this.
In prestashop\modules\blocklanguages\blocklanguages.php
add this

    public function hookRightColumn($params)
   {
       global $smarty;
       $languages = Language::getLanguages();
       if (!sizeof($languages))
           return '';
       $smarty->assign('languages', $languages);
       return $this->display(__FILE__, 'blocklanguages.tpl');

   }

   public function hookLeftColumn($params)
   {
       return $this->hookRightColumn();

   }



and check css.

In default module only Top hook is defined, so you have to add hooks for left/right columns.

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...