Jump to content

How get image path PS1.5.4.1


Recommended Posts

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 by And63 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...