butlerov Posted June 29, 2017 Share Posted June 29, 2017 Hi.Wanna add some html element like text with its own class(below add to cart button) but not to all products, only to specific ones.How to do that? Link to comment Share on other sites More sharing options...
endriu107 Posted June 29, 2017 Share Posted June 29, 2017 It depends where exactly you want to add this text. Link to comment Share on other sites More sharing options...
butlerov Posted June 29, 2017 Author Share Posted June 29, 2017 (edited) It depends where exactly you want to add this text. It not necessary be the text, it can be the button.Important how to make it visible only on some products.Unfortunately changing product.tpl, will change templates to all products. Place - below add to cart button Edited June 29, 2017 by butlerov (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted June 29, 2017 Share Posted June 29, 2017 Yes any change in tpl are display in all product, if this should display only in specific product for example from one category there you can add some if statment, also you can add it in product short or long description, or you need to module where you can easly can activate some html block for any product you want. Link to comment Share on other sites More sharing options...
butlerov Posted June 29, 2017 Author Share Posted June 29, 2017 Yes any change in tpl are display in all product, if this should display only in specific product for example from one category there you can add some if statment, also you can add it in product short or long description, or you need to module where you can easly can activate some html block for any product you want. Creating another product.tpl to those products like product1.tpl will work?or this will require editing controllers Thx for answers btw Link to comment Share on other sites More sharing options...
endriu107 Posted June 29, 2017 Share Posted June 29, 2017 No it wont work. I think you need module like this: https://mypresta.eu/modules/front-office-features/html-box-pro.html Link to comment Share on other sites More sharing options...
Scully Posted June 29, 2017 Share Posted June 29, 2017 I would change product.tpl and make sure, every product which needs the button is somehow flagged or within a certain category. So you could check this condition and depending on true or false bring the button up or not. 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