And63 Posted April 28, 2013 Share Posted April 28, 2013 (edited) In blocksearch in file blocksearch-instantsearch.tpl i have this code: { tmp_value= "<img src=\"" + baseDir + "img/p/" + data.id_product+"/" + data.id_product+ "-mini.jpg\" alt=\"" + value + "\" />" + value; } it return path to image - not work corectlly: return e.g product_id 123 this path: http://localhost/img/p/123/123-mini.jpg How replace string 123 on 1/2/3 ? correct path look this: http://localhost/img/p/1/2/3/123-mini.jpg Sorry my english Edited April 28, 2013 by And63 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 29, 2013 Share Posted April 29, 2013 try to use $link function instead this method Link to comment Share on other sites More sharing options...
And63 Posted April 29, 2013 Author Share Posted April 29, 2013 As used $ link in this particular situation? - Where is the hook? Link to comment Share on other sites More sharing options...
vekia Posted April 29, 2013 Share Posted April 29, 2013 ahh its my mistake, you are talking about instant search not simple search 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