pourouz Posted May 12, 2016 Share Posted May 12, 2016 Hello fellow Prestashopers. I'm new with prestashop yet I have come with a problem regarding the position of a module. It's pretty clear that you can handle the position of a module by draging it to the desired positioni in the appropriate hook. I wanted to move the social sharing module in the displayRightColumnProduct Hook to the bottom of the column below the "add to wishlist" button. No matter how much dragging I did it didnt seem to work. I'm attaching a photo to illustrate my problem. Thank you in advance for your time and concern. Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 hello in this case you have unhook module from current position and put it to the new hook, at the bottom of it. the new hook name is $HOOK_EXTRA_LEFT - displayLeftColumnProduct Link to comment Share on other sites More sharing options...
pourouz Posted May 12, 2016 Author Share Posted May 12, 2016 Hello VekiaThank you for your quick response. I'm a little lost here. Here is what I think I grapsed from your reply. 1) You want me to unhook Social Sharing Module from displayRightColumnProduct.2) Create a new hook named $HOOK_EXTRA_LEFT which is connected with displayLeftColumnProduct. How do i create a new hook and name it and connect it to an existing one? Is it done with transplant? Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 try to transplant social sharing module to this hook under modules > positions > transplant a module section have you tried it? Link to comment Share on other sites More sharing options...
pourouz Posted May 12, 2016 Author Share Posted May 12, 2016 (edited) Well I found a solution tinkering the product.tpl file. I moved following code that appears right after the name of the product right below the code that adds the product to the wishlist. {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if} It's not tested yet. I hope it works correctly. Edited May 12, 2016 by pourouz (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 yea that is also the solution :-) it should be fine, is it? Link to comment Share on other sites More sharing options...
uv ben Posted December 2, 2016 Share Posted December 2, 2016 (edited) - Edited December 8, 2016 by uv ben (see edit history) Link to comment Share on other sites More sharing options...
uv ben Posted December 5, 2016 Share Posted December 5, 2016 (edited) - Edited December 8, 2016 by uv ben (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now