Skip to main content

Calling Just the Product Image

13 years 2 months ago - 13 years 2 months ago #120452 by Sovaka
-- 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: 13 years 2 months ago by Sovaka.

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

13 years 2 months ago #120467 by Sovaka
For those who are also wondering;
I was able to do it with this chunk of code;
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.

13 years 2 months ago #120491 by Eliot
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.059 seconds
Powered by Kunena Forum