Calling Just the Product Image

  • Posts: 10
  • Thank you received: 0
11 years 2 months ago #120452

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5

G'day,
What I would like to know is how I can call just the Product Image on the Product page without it having go through the multiple Div formats?
IE Bypassing the show_block_img.

I am assuming the process would be similar for other Product information like Price, Stock level et c.
Where do I find a list of all these parameters?

Thanks

Last edit: 11 years 2 months ago by Sovaka.

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
11 years 2 months ago #120467

For those who are also wondering;
I was able to do it with this chunk of code;

		<?php
		if(!empty ($this->element->images)){
			$image = reset($this->element->images);
		}
		$height = $this->config->get('product_image_y');
		$width = $this->config->get('product_image_x');
		if(empty($height)) $height=$this->config->get('thumbnail_y');
		if(empty($width)) $width=$this->config->get('thumbnail_x');
		$divWidth=$width;
		$divHeight=$height;
		$this->image->checkSize($divWidth,$divHeight,$image);
		?>
		<img src="<?php echo $this->image->uploadFolder_url . $image->file_path; ?>" style="float:left;"/>	

Of course the IMG style properties you'd have to change to suit your needs.

Still keen on the list of how to call all the parameters.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #120491

Thanks for sharing your solution, it may be helpful :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum