Remove image from product table list

  • Posts: 209
  • Thank you received: 18
11 years 3 months ago #113464

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.

  • Posts: 2334
  • Thank you received: 403
11 years 3 months ago #113504

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:

<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.

  • Posts: 18
  • Thank you received: 0
10 years 2 weeks ago #176003

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.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
10 years 2 weeks ago #176076

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum