Prod Category text desc not using Read More funct

  • Posts: 53
  • Thank you received: 0
11 years 2 months ago #93183

In the Product Category when I edit the description text it does not recognize the Read More function to shorten the general description to allow the products to appear toward the top of the page just under the Read More instead at the end of the description.

Please advise of work around or solution.

Thanks

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #93218

Hi,

I think that you'll probably find your answer through this thread :).

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

  • Posts: 53
  • Thank you received: 0
11 years 2 months ago #93330

I reviewed the thread and find no code with echo in the Category description text that appear before the products are shown.

You can see the page here.

198.57.141.10/~cllgshp/index.php/product...go-value/colligo-dux

All the Read More code is doing is putting in a horizontal rule seen just before the Warning:Colligo....

Looking for a solution to bring the products closer to top of page but still keep this general product information available.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #93386

Can you edit the view used for the listing, and see if the code:

echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->product_description);
is present.

And in the product view if the code:
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
is present.

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

  • Posts: 53
  • Thank you received: 0
11 years 2 months ago #93674

We are looking at a category listing not a product listing. We can not find either of these lines of code in any of the views files.

Which files with path would should we be looking in.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #93863

To have the readmore in the category description you can edit the view "product / listing" and use "echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->category_description));" in the "hikashop_category_description" div.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum