Jump to content

need image path with root path


Ashok Sachdev

Recommended Posts

Hi, I am php developer i need image path with root path

 

i am using 

$product = new Product($data['object']->id,false,Context::getContext()->language->id);
$image = Image::getCover($data['object']->id);
$link = new Link;//because getImageLInk is not static function
$imagePath = $link->getImageLink($product->link_rewrite, $image['id_image'], 'home_default');
print_r($imagePath);die;

getting url but i need path need all images not only cover

Edited by Ashok Sachdev (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...