Jump to content

How to add html element to specific products?


butlerov

Recommended Posts

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 by butlerov (see edit history)
Link to comment
Share on other sites

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

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

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

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...