Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

re-hook module

unhook module hook module positions modules

  • Please log in to reply
5 replies to this topic
ontljoshi

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts

Posted 08 August 2012 - 03:02 PM

Hi all,

i would like to know how do i re-hook the particular module back to its original hook place. after unhook-ing a module i am unable to re-hook.

basically, i wanted to reposition the module to another location but it wasn't allowing me. so i thought let me unhook it and then will hook it to the place i want, but after unhooking the module i am unable to find the module.

Please help me urgently. thanks and awaiting your positive and prompt reply.

Izraelviz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 62 posts

Posted 08 August 2012 - 03:15 PM

Make sure module is installed and then go to:

Modules --> Positions --> +Transplant a module -->Select the module you want to add and then "Hook Into" Left/Right Column etc.

If you need the module to show up a place it won't let you transplant to you need to tweak the php file in the module folder.

Hope it helps and good luck =)

Software Failure. Guru meditation #00000004, 0000AAC0

"Man the Lifeboats! Women and children first!"


ontljoshi

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts

Posted 08 August 2012 - 03:21 PM

please help what sort of tweaking is required. Thanks Om

Izraelviz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 62 posts

Posted 08 August 2012 - 10:49 PM

Let's say you want to transplant "blocknewsletter" to your footer. By default you're allowed to place this in either right or left column. To make it show it show up in the footer you will need to change this in the blocknewsletter.php:

(line 206) function hookRightColumn($params)
{
return $this->hookLeftColumn($params);
}

to

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

Software Failure. Guru meditation #00000004, 0000AAC0

"Man the Lifeboats! Women and children first!"


Izraelviz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 62 posts

Posted 08 August 2012 - 10:58 PM

And then chose "Footer" in Transplant a module of corse =)

(Make sure Force Compile is on and Cache is off in Preferences -->Performance)

Software Failure. Guru meditation #00000004, 0000AAC0

"Man the Lifeboats! Women and children first!"


GoGoMo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 163 posts

Posted 15 February 2013 - 06:22 PM

Make sure module is installed and then go to:

Modules --> Positions --> +Transplant a module -->Select the module you want to add and then "Hook Into" Left/Right Column etc.

If you need the module to show up a place it won't let you transplant to you need to tweak the php file in the module folder.

Hope it helps and good luck =)


Hi can you tell me how to hook New Products module in the Homepage content? This Homepage content hook only allows hookin the Image Slider, Featured Products and/or Top Sellers modules by default. I'd like to show the Image Slider, Block Advertising, Featured Products, New Products and/or Top Sellers modules in the center column of the Homepage content.

Edited by GoGoMo, 15 February 2013 - 06:22 PM.






Also tagged with one or more of these keywords: unhook module, hook module, positions, modules

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users