phinq1910 Posted July 29, 2016 Share Posted July 29, 2016 Hi, I have created a test module with prestashop 1.6.1.6. I am using hookDisplayProductButtons to display Custom Button on product detial page return $this->display(__FILE__, 'views/templates/front/button_custom.tpl'); And in fron-end it is displayed: My question is How to display Custom Buttom same below image (above Add To Cart button): Please give me a solution. Thank you very much Link to comment Share on other sites More sharing options...
phinq1910 Posted July 29, 2016 Author Share Posted July 29, 2016 I mean I dont want to edit prestashop base core. If you can, please suggest for me how to do it that only using code in test module. Link to comment Share on other sites More sharing options...
rocky Posted July 30, 2016 Share Posted July 30, 2016 There is no hook above the "Add to cart" button, only below it. You can, however, go to Modules > Positions and move your module above the "Product payment logos block" in the displayProductButtons section so it appears right below the "Add to cart" button. If you really need the button above the "Add to cart" button and it's a private module, you could do some CSS hacking using absolute positioning to move it above the "Add to cart" button. 1 Link to comment Share on other sites More sharing options...
phinq1910 Posted August 1, 2016 Author Share Posted August 1, 2016 Thanks you. I think I will using CSS. 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