Jump to content
Ashok Sachdev

need image path with root path

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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More