int Posted October 18, 2015 Share Posted October 18, 2015 Looking for some guidance on how we can add a tooltip to a configurable option (a custom addon in fact) during the customer checkout process; basically, we have a new/custom field to allow people to add a subdomain name to use to access their servers, but people can't seem to understand what that field represents, so we constantly get customers using our 'live chat' to ask what to put in this 'subdomain' field. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 18, 2015 Share Posted October 18, 2015 if you use Six Template, you can simple modify the input field to include ( data-toggle="tooltip" title="here is the description for this field") ex.: <input type="text" name="custom_field_name" data-toggle="tooltip" title="here is the description for this field"> 0 Quote Link to comment Share on other sites More sharing options...
int Posted October 23, 2015 Author Share Posted October 23, 2015 if you use Six Template, you can simple modify the input field to include ( data-toggle="tooltip" title="here is the description for this field")ex.: <input type="text" name="custom_field_name" data-toggle="tooltip" title="here is the description for this field"> Thanks, but this unfortunately doesn't work with my addon that I'm trying to add a tooltip to (which is in the modules/addons/<module> folder and uses a hook): <input type=\"hidden\" name=\"location\" value=\"" + configBox.prop("name") + "\" />"); I put the escape characters in as they should be, but in putting data-toggle and title, the field doesn't show up in the order form at all. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 23, 2015 Share Posted October 23, 2015 input type is "hidden"! it will not be visible at all. if the 'data-toggle="tooltip"' add the following JS code to enable the tooltip plugin for these fields, <script> $(document).ready(function(){ $('input[data-toggle="tooltip"]').tooltip(); }); </script> 0 Quote Link to comment Share on other sites More sharing options...
int Posted October 24, 2015 Author Share Posted October 24, 2015 input type is "hidden"! it will not be visible at all. if the 'data-toggle="tooltip"' add the following JS code to enable the tooltip plugin for these fields, <script> $(document).ready(function(){ $('input[data-toggle="tooltip"]').tooltip(); }); </script> So I should change the input type to "text"? Wondering why it's hidden in the first place then... And where do I add the JS code? At the top of the TPL file? 0 Quote Link to comment Share on other sites More sharing options...
int Posted November 15, 2015 Author Share Posted November 15, 2015 So I should change the input type to "text"? Wondering why it's hidden in the first place then... And where do I add the JS code? At the top of the TPL file? Got the developer to fix this for me. Thanks anyway! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 16, 2015 Share Posted November 16, 2015 So I should change the input type to "text"? Wondering why it's hidden in the first place then... And where do I add the JS code? At the top of the TPL file? hi, didn't had a chance to reply to you, yes change input type to text and place the JS code in footer.tpl file or more better inside a .JS file (more safe) and include this file in footer.tpl 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.