Muad'Dib Posted September 25, 2013 Share Posted September 25, 2013 (edited) Hey there,I was wondering if there was any easy way to do this, add some other buttons where the 'add-to-cart' button already is on the product page?Let's say for example purpose, I want to move the 'send-to-a-friend' button from the 'sendtoafriend' module from the left part of the product page, beneath the pictures, to the right part of it beneath short description & price, just aside the 'add-to-cart' button.How would you get this done?I doubt there is no easy way for this, and it is probably done through the themes, but I want to make sure. And if doing with themes, would it be possible to have that button showing or not depending if the module is installed or not? Many thanks in advance for the heads up.Cheers! Edited January 9, 2014 by Muad'Dib (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 you can do everything in product.tpl file located in your theme directory. this file is an template of the product page, you can easily move whole hook right below / above the add to cart button. you can also try to move send to a friend module to hook: HOOK_PRODUCT_ACTIONS or HOOK_EXTRA_RIGHT how to achieve this? just open modules>positions tab, click on "transplant" button, and attach send to a friend module to displayExtraRight / displayProductActions hooks 1 Link to comment Share on other sites More sharing options...
Muad'Dib Posted January 9, 2014 Author Share Posted January 9, 2014 you can also try to move send to a friend module to hook: HOOK_PRODUCT_ACTIONS or HOOK_EXTRA_RIGHT how to achieve this? just open modules>positions tab, click on "transplant" button, and attach send to a friend module to displayExtraRight / displayProductActions hooks @vekia, Many thanks for the very quick reply and please appologies for my belated one I got caught up with other things. That was indeed what I needed so my problem is solved However just to make sure for everyone reading, that transplant button only works if we defined the hooks in question you want to transplant to in the module.php file beforehand right ? I know I always had to do it, but who knows maybe I was doing something wrong Marking as solved since it is Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts