Skip to main content

Remove image from product table list

More
13 years 2 months ago #113464 by JIK
Hi, is there a way to remove the product image and heading from a menu that shows products in a table?

I have added to the css
.hikashop_product_image_row{display: none;}
.hikashop_product_image title{display:none;}

This removes the actual image but not the table heading for the image.

Tks

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

More
13 years 2 months ago #113504 by Eliot
Hi there,

The best solution is to edit your layout.
Just go in Display>views and find the file listing_table for product.
Then, just delete the code generating the image:
Code:
<div style="height:<?php echo $divHeight;?>px;text-align:center;clear:both;" class="hikashop_product_image"> <div style="position:relative;text-align:center;clear:both;width:<?php echo $divWidth;?>px;margin: auto;" class="hikashop_product_image_subdiv"> <?php if($this->params->get('link_to_product_page',1)){ ?> <a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>"> <?php } echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name),"","", $width ,$height); $main_thumb_x = $this->image->main_thumbnail_x; $main_thumb_y = $this->image->main_thumbnail_y; if($this->params->get('display_badges',1)){ $this->classbadge->placeBadges($this->image, $this->row->badges, -10, 0); } $this->image->main_thumbnail_x = $main_thumb_x; $this->image->main_thumbnail_y = $main_thumb_y; if($this->params->get('link_to_product_page',1)){ ?> </a> <?php } ?> </div> </div>
The following user(s) said Thank You: JIK

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

More
11 years 11 months ago #176003 by g5_macdaddy
Hello,

I have been digging to find a solution to remove the product image and I cannot find a solution
Just so you know this option dose not work in the newest version of Hikashop.

Please help me find a way to remove the product images from the product page.

Thanks

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

More
11 years 11 months ago #176076 by Jerome
Hi,

The solution that Eliot gave one year ago is still the right one.
Maybe the code is not the same, but the idea is ; you have to override the view in order to remove the image.
You can simply change the check on the configuration option "thumbnail" to put a "false" in PHP ; so you will be sure that the image won't be display (for the table head and for the table body).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.182 seconds
Powered by Kunena Forum