mzeeshan Posted April 6, 2019 Share Posted April 6, 2019 Dear developer community I needed two things to be solved. One I wanted to move the custom field location in product page. That I did it by editing product.tpl file. Just moved the customization block to the place where I needed it to appear. If any body is interested I can show you how. Now second thing I want is to show a customization field (a custom message) in my product listing only if a specific attribute is selected. In other words for example if a customer selects Red color attribute only then a custom text box appears on the product page. Otherwise if he selects Black color then that custom text box should disappear. I have a feeling that it can be achieved my adding a simple custom function in the product.tpl file but I dont know how to do this. To describe it further I am talking about the customization field which we add by going to backoffice > catalog > products > (my_product) > options tab > customization > add a customization field. I really appreciate if any one of you developers help me out in this. Thank you Link to comment Share on other sites More sharing options...
mzeeshan Posted April 8, 2019 Author Share Posted April 8, 2019 guys any one please at least refer me to some similar post where this is addressed.. I cant find anything addressing my issue. Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted April 8, 2019 Share Posted April 8, 2019 This should be done with javascript. Maybe a <span> around the customization field that is on ''style="display:none"' when the right attribute isn't selected. 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