how split the category description

Phoca Cart - complex e-commerce extension
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

how split the category description

Post by vodka »

please tell me how to split category description into two parts before and after the pictures for Phoca Cart (J4)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how split the category description

Post by Jan »

Hi, there is no such option for description. So this needs to be customized.

e.g. per template override, where own output will be set and description will be divided to e.g. short and long description
or plugin can be created. There are following events in category view:

- onPCVonCategoryBeforeHeader
- onPCLonCategoryGetOptions
- onPCLonCategoryInsideLayout
- onPCVonCategoryItemAfterAddToCart

Jan
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how split the category description

Post by vodka »

please tell me the path to the file that is responsible for displaying the category description
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how split the category description

Post by Jan »

Hi,

components/com_phocacart/views/category/tmpl/default_header.php

Jan
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how split the category description

Post by vodka »

Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how split the category description

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply