- Posts: 10
- Thank you received: 0
Calling Just the Product Image
13 years 2 months ago - 13 years 2 months ago #120452
by Sovaka
Calling Just the Product Image was created 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
-- 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
Replied by Sovaka on topic Calling Just the Product Image
For those who are also wondering;
I was able to do it with this chunk of code;
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.
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
Replied by Eliot on topic Calling Just the Product Image
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