Posted - 09/09/2018 : 14:37:17
Ok, I could not locate the post I was looking for, but it's super easy, so here it is. In the custom field you just add this <div id="customone"></div> Remember you can do that quickly with the quick entry, or via csv. Next, in your proddetail.asp page, before the closing </body> tag add this <script> if (document.getElementById('customone') != null) { var customtextone = ('Your common info that you<br/>want to show on a large number of products<br/>This is also useful if you have more info than allowed in that field in the admin'); document.getElementById('customon').innerHTML = customtextone; } </script>
Alternately, if you want something to include an html page, like an iframe, I use this https://johannburkard.de/blog/programming/javascript/inc-a-super-tiny-client-side-include-javascript-jquery-plugin.html
Edited by - dbdave on 09/09/2018 14:37:43
|