Jump to content

Edit History

Ashok Sachdev

Ashok Sachdev

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

Ashok Sachdev

Ashok Sachdev

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 

Ashok Sachdev

Ashok Sachdev

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

Ashok Sachdev

Ashok Sachdev

Hi, I am php developer i need help for after save or update product hook in my custom extension 

×
×
  • Create New...