Opencart import issue

  • Posts: 63
  • Thank you received: 0
9 years 5 months ago #204226

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

Importing from opencart seemed to go ok, however, when bringing over the category and product descriptions it appears to have brought them over RAW not interpreting the HTML tags.

So instead of a description like this: "Product A blah blah blah" I see "<p><strong>Product A</strong> blah blah blah</p>"

Any fix for this?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 5 months ago #204256

Hi,

It seems that you have the same problem as there is with the MijoShop descriptions:
www.hikashop.com/forum/product-category-...raw-html.html#203500
You can use that modification to fix the product description display on the frontend as you already did the import.

It seems to be coming from a problem in OpenCart:
forum.opencart.com/viewtopic.php?f=20&t=25312
forum.opencart.com/viewtopic.php?f=18&t=2034

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

  • Posts: 63
  • Thank you received: 0
9 years 5 months ago #204344

Niocolas, thanks! This fixed one issue as the product descriptions look fine now, however, I can not seem to find where to use that same code for the category descriptions. Is there a view for that as well?

Thanks!

Charles

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 5 months ago #204524

Hi,

Yes. The description of categories is displayed in the file "listing" of both the views "product" and "category" with the code:
$this->element->category_description
that you can change to:
html_entity_decode($this->element->category_description)

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

Time to create page: 0.050 seconds
Powered by Kunena Forum