Jump to content

Display custom button above Add To Cart on product detail page


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...