GT ITECH Posted December 8, 2014 Share Posted December 8, 2014 Hello, i want to know how i can modify/replace the add to cart button via the module i will create ? I already know how to place link, text or wathever below the add to cart button with the productActions hook , but now i want to remove the add to cart button directly from my module (when he is installed by the user) not via manual css or tpl modification. Thank in advance for your help P.S : I mean the add to cart button in the product page (see the attached images) Link to comment Share on other sites More sharing options...
vekia Posted December 8, 2014 Share Posted December 8, 2014 it's not possible to do it without some hacks. you can do it in two ways: - replace button with jquery script - hide defaut button with css and display own button in hook productActions or extraRight (as far as i remember) (it will appear below the add to cart) 1 Link to comment Share on other sites More sharing options...
GT ITECH Posted December 8, 2014 Author Share Posted December 8, 2014 Thank you, i don't remember it's possible with jquery Anyway the css solution is more attractive for me , but how i am supposed to do that ? I really can alter the prestashop "base" css without jquery in my module ??? Thank you very much for your very great help Link to comment Share on other sites More sharing options...
MikeCodes Posted November 26, 2020 Share Posted November 26, 2020 On 12/8/2014 at 12:45 PM, vekia said: it's not possible to do it without some hacks. you can do it in two ways: - replace button with jquery script - hide defaut button with css and display own button in hook productActions or extraRight (as far as i remember) (it will appear below the add to cart) Is that still relevant in 2020? if yes, does anyone know why they decided to do this? Link to comment Share on other sites More sharing options...
El Patron Posted November 26, 2020 Share Posted November 26, 2020 8 hours ago, MikeCodes said: Is that still relevant in 2020? if yes, does anyone know why they decided to do this? use template inheritance (new to PS 1.7) learn more here https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/ 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