Search box mods

I’ve been playing with the search box a bit. How are you guys doing the initial text in the search box that gets replaced when clicked? Has anyone provided the javascript for this?



And how can we include product code in the basic searches? I’ve seen some answers that add another box, but we should be able to add this to all searches, correct?



v2.0.12

For the second question:

[url]CS-Cart Documentation — CS-Cart 4.15.x documentation



Bob

Thanks, Bob! I read that before but also found other posts making this seem more involved.



Works as desired :smiley:

Got the initial search box text working too. Again, simpler than I was making it. I was hesitant to remove the string from “value”.



In search.tpl, change:





to