Product description shows raw HTML

  • Posts: 12
  • Thank you received: 0
9 years 10 months ago #203500

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.22
-- Browser(s) name and version -- : all

I just purchased HikaShop and did the products -> import to bring in everything from MijoShop (ugh). After doing so, there are several issues, the biggest of which is that all the product descriptions are shown as the raw HTML. For example, paragraph brackets, etc.

How do I change this to show the formatted or plain text descriptions?

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
9 years 10 months ago #203502

Hi,

I don't see why that would happen, but you can edit the file "show_default" via the menu Display>views and change the code :
$this->element->product_description
to :
html_entity_decode($this->element->product_description)
which should fix the issue.

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

  • Posts: 12
  • Thank you received: 0
9 years 10 months ago #203552

Hello, thanks for the response. Unfortunately, this:

$this->element->product_description

does not appear in that file.

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
9 years 10 months ago #203554

Hi,

The "$this->element->product_description" is in the view "product | show_default" ; there is no other way to display the product description in the product page.
Here the full line that you can find in the view

echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));

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.

  • Posts: 12
  • Thank you received: 0
9 years 10 months ago #203602

Ah, thanks. The problem was that the usual <control-F> in a browser to do a search doesn't find anything in that window. I searched manually, found it, fixed it.

Thanks!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum