DomsAdmin Posted January 22, 2011 Share Posted January 22, 2011 Hello forum!I recently installed the facebook like button module (works great!!!) However I am not satisfied with the currently positioning of the Fb like button. I tried going to BO and transplanting it, but nothing happens. I would like to position the like button directly under the "add to cart" button. Is there any guidance on how this can be achieved?Thanks in advance... Link to comment Share on other sites More sharing options...
otzy Posted January 22, 2011 Share Posted January 22, 2011 what hooks are available for this module?There is productActions hook in add to cart block. Link to comment Share on other sites More sharing options...
DomsAdmin Posted January 22, 2011 Author Share Posted January 22, 2011 Otzy:Thanks for the post! As I'm new to prestashop the only hooks for the facebook module are the ones thats listed in Backoffice/modules/postions/transplant a module.Question: Where can you find "productactions hook" located in the add to cart block?Thanks, and awaiting your reply... Link to comment Share on other sites More sharing options...
otzy Posted January 24, 2011 Share Posted January 24, 2011 I'm not acquainted with this module.So I can only offer advice.Try to find function public function hookProductActions($params)in /modules/ModuleName/ModuleName.phpIf you will find it, you can position facebook button at Product actions in BO->modules->PositionsIf no, add this function to php file public function hookProductActions($params) { return $this->hookRightColumn($params); } hookRightColumn is only example. You have to use one of the hook functions defined in the module's class .Disclaimer I'm not sure if it will work as I did not see this module. Link to comment Share on other sites More sharing options...
DomsAdmin Posted January 24, 2011 Author Share Posted January 24, 2011 Thanks for the reply. I.ve looked in the different folders, and could not find the public function hookProductActions($params) line of code. I tried inserting the line the function and got back an error message. Link to comment Share on other sites More sharing options...
otzy Posted January 24, 2011 Share Posted January 24, 2011 give me a link where I can download facebook like module Link to comment Share on other sites More sharing options...
DomsAdmin Posted January 26, 2011 Author Share Posted January 26, 2011 Thanks otzy for the offer but I was able to figure it out. Thanks again! Link to comment Share on other sites More sharing options...
htech Posted January 28, 2011 Share Posted January 28, 2011 hey guys, help required with the positioning topic....struggling to figure this out...if anyone can point me in the right direction See attached picture...looking to move that info from the RED block to the yellow Block..Thanks Link to comment Share on other sites More sharing options...
DomsAdmin Posted January 29, 2011 Author Share Posted January 29, 2011 Try to position the info by using the global css settings Link to comment Share on other sites More sharing options...
htech Posted January 29, 2011 Share Posted January 29, 2011 thanks, but i am struggling to figure out what to move or edit? Link to comment Share on other sites More sharing options...
DomsAdmin Posted January 30, 2011 Author Share Posted January 30, 2011 It's going to be in global.css. Try looking for the 2 lines of code that contain the cart and the log in information. 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