- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 18.01.18, 10:57
- Opened by: mahieux
- Closed by: Marek
- Closed on: 10.02.18, 21:57
- Reason: Closed
- Comment: Glad to help!
Ticket #11451 - Can't find where the category page model can be amended
Hello Marek
I’m now looking for the generic category page model
So far if I look at it
it shows 1/ a subcategories list
2/ a pic 3/ a video 4/ a content
I get where the pic and subcategories list come from
I’m trying to understand where in which model file / UI
A/ I could see/modify a condition to not display the subcategories list if there is none below B/ rid or not of the video C/ get anything else (full or empty HTML content) in place of the awful 404
in short that is control that category page model
see attachment
Thanks
Comments
for CONTENT
OK I think I read from the code that content is generated by a DB query to populate matching products, since i have none for no surprise
Why you need edit theme files? you can configure the page through back office
mmm and where ?
As if I asked I did not find what I was looking for
so I’m still puzzled for A/ & B/
a. the file is themes/alysum/templates/catalog/listing/category.tpl
b. just disable the module pk_video
got B/ done easily
Now is that standard in PS that a product which comes with no Child category displays a sub cat header , or is it a PK flaw ?
any elegant way to evaluate an empty div afterward and a hidden css then ?
try following CSS:
brilliant idea , execpt taht I will have to go thru a JS because a child div is empty and I need the parent to hide
but anyway that led me to sthg
is the ticket solved now?
Not really as this would apply foRr 1 DIV , here the pb is parent child related
pb is that is a div as no content then the PARENT should not be displayed and it may not be the direct parent
should be something like
if category_tree is empty then section ps_categorytree should not be displayed
give me a link to page where I could see the issue
e.g https://lepetitcoton.com/fr/21-bodies its an end of teh categories subcategory tree , in short a ‘product’ and it therefore should not show any subcategory header
since there are none
That is native prestashop module, and you can ask prestashop developers to fix that issue