Searching variants unwanted span

  • Posts: 16
  • Thank you received: 2
  • Hikashop Business
9 years 2 months ago #244797

Hi,

When trying to search for products with variants the following span appears on the search results page:
<span class="hikashop_product_variant_subname">: </span>

I know it is possible to hide this span using CSS but I need it to appear on other areas of my site. Any advice would be most appreciated :)

Thanks

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 2 months ago #244798

Hi,

Can you provide an example link of a search with the problem on yout website so that we can better understand the situation ?

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

  • Posts: 16
  • Thank you received: 2
  • Hikashop Business
9 years 2 months ago #244826

Hi Nicolas,

Included one in the original post information, DM'd you the link anyway,

Thanks,

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 2 months ago #244829

Hi,

Try changing the code:
if(empty($row->title)){
$row->title = $row->product_name;
}
to:
if(empty($row->title)){
$row->title = strip_tags($row->product_name);
}
in the file plugins/search/hikashop_products/hikashop_products.php

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

  • Posts: 16
  • Thank you received: 2
  • Hikashop Business
9 years 2 months ago #245116

Sorry for the slow reply Nicolas, this solution was perfect for my needs. Thanks

nicolas wrote: Hi,

Try changing the code:
if(empty($row->title)){
$row->title = $row->product_name;
}
to:
if(empty($row->title)){
$row->title = strip_tags($row->product_name);
}
in the file plugins/search/hikashop_products/hikashop_products.php

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

Time to create page: 0.059 seconds
Powered by Kunena Forum