Hikashop Google Products Plugin XML with problems

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
2 months 1 week ago #336979

-- url of the page with the problem -- : www.havellasmotoparts.gr/products/products_list.xml
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3

Hello,

in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems.
As a result Facebook catalogue cannot be filled using the XML feed.
I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.

Is it possible that non-latin characters are the cause of the problem?

I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.

I attach you the following files:
a) The XML file

File Attachment:

File Name: products_list.txt
File Size:1,072 KB

b) The FF and Chrome screenshots

Thank you,
Yannis

Attachments:
Last edit: 2 months 1 week ago by yanliom.

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
2 months 1 week ago #336980

After some research I found that a wrong character is inserted when a long product description is truncated (see screenshot).
I retyped manually a product description and the character is inserted again!

Please see attached screenshot.



Yannis

Attachments:

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
2 months 1 week ago #336983

Ok, it seems I found the bug in the code.

In the code you are using the substr php function which counts bytes and may cut characters in half....
I replaced it with mb_substr and everything works ok now

Please see: stackoverflow.com/questions/2124338/why-...-when-cutting-a-text

I'm waiting for an official bug-fix!

Yannis

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

  • Posts: 74542
  • Thank you received: 11498
  • MODERATOR
2 months 1 week ago #336987

Hi,

Thank you for your feedback.
I've added a patch on our end to avoid that for multibyte characters.
Download again the install package of HikaShop on our website and install it on yours and it will add the modifications to avoid that problem.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum