pagebreak in product description not work

  • Posts: 39
  • Thank you received: 5
  • Hikashop Business
3 weeks 2 days ago #364189

-- url of the page with the problem -- : www.aroma-massage.it

hi dear, to reduce the length of the text in the product description I wanted to use pagebreak like slide.
I have already used it on other sites and in other articles on this site and it has always worked well.
But when I try to use it for the product description of hikashop this does not work and only displays a gray line without a title and without a slide.

I tried both with jce editor and tinymce:
with jce: I see the page break button, I insert the data but it is not visible in the frontend;
with Tiny: the pagebreak button doesn't appear at all.

for now I have only tried it on one product visible at the following link

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 weeks 2 days ago #364190

Hi,

HikaShop automatically removes the readmore tag when displaying the description.
You can see this line of code:

echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
if you edit the view file product / show_default via the menu Display>Views.
If you don't want that, you can change it to:
echo JHTML::_('content.prepare',$this->element->product_description);

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

  • Posts: 39
  • Thank you received: 5
  • Hikashop Business
2 weeks 3 days ago #364299

hi, thanks for the reply.
I made the changes but the problem doesn't change.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 weeks 3 days ago #364304

Hi,

Then, I have no idea. The pagebreaks are visible on your product page. So if the thing you're using to convert pagebreak into sliders doesn't pick them up, it means that the problem lies in the code of that thing.
And I don't know what you're using for this so I can't even check its code.

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

  • Posts: 39
  • Thank you received: 5
  • Hikashop Business
2 weeks 3 days ago #364314

I'm using a standard plugin sistem page break.
I could do a test, which I had already done before applying the solution you proposed, change the editor from jce to tiny

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 weeks 2 days ago #364317

Hi,

I didn't know this was possible by default with Joomla. You thaught me something cool:
magazine.joomla.org/all-issues/april-202...re-page-break-plugin
So, I've looked at the code of this content - Page Break plugin, and it is made to only work on Joomla articles. That's why it doesn't do anything with the description of products.
You'll have to use another extension to be able to do that in the description of products, like extensions.joomla.org/extension/tabs-and-sliders/ or regularlabs.com/tabsaccordions

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

  • Posts: 39
  • Thank you received: 5
  • Hikashop Business
2 weeks 2 days ago #364323

ok, we learned something new today too :)
I'll try the plugin and update you.
in the meantime, thanks

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

Time to create page: 0.080 seconds
Powered by Kunena Forum