Information displayed double

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
4 years 5 months ago #311723

-- url of the page with the problem -- : shop.hansplanje.nl/category/12-agenda
-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11
-- PHP version -- : 7.1.30
-- Browser(s) name and version -- : Firefox

The information about the product is displayed twice.
See attachments




Hope you have a solution for this topic.

Kind Regards,
Winfried Buijen

Attachments:

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

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
4 years 5 months ago #311724

Also there is, shown in the HTML-code, an extra two characters shown on the screen: ">

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 5 months ago #311759

Hi,

That's because the name of your product contains HTML instead of just text. I would rather recommend you don't add HTML to the product name and instead add your CSS code as explained here in order to style your products name:
www.hikashop.com/support/documentation/1...ize-the-display.html

But we'll add a patch to avoid that on our end.
You can add such patch by editing the file "listing_img_title" via the menu Display>Views and changing the line:

<meta itemprop="name" content="<?php echo $this->row->product_name; ?>">
to:
<meta itemprop="name" content="<?php echo $this->escape(strip_tags($this->row->product_name)); ?>">

The following user(s) said Thank You: W13ear

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

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
4 years 5 months ago #311940

There is not such row in the mentioned file 'listing-img-title'

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

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
4 years 5 months ago #311943

I have changed the CSS as it should have ;)

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

Time to create page: 0.076 seconds
Powered by Kunena Forum