Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion config/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ global_settings:
modules_to_hook:
displayCustomerAccount:
- psgdpr
- ps_emailalerts
# Keep existing hooks and append them after
- ~
displayNav1:
Expand All @@ -60,35 +61,46 @@ global_settings:
displayTop:
- ps_mainmenu
- ps_searchbar
- pagesnotfound

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pagesnotfound I think we don't need this one.

# Keep existing hooks and append them after
- ~
displayHome:
- ps_imageslider
- ps_customtext
- ps_featuredproducts
- ps_banner
- ps_customtext

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_customtext Should stay just after the image slider.

- ps_specials
- ps_newproducts
- ps_bestsellers
# Keep existing hooks and append them after
- ~
displayFooterBefore:
- ps_socialfollow
- ps_emailsubscription
- blockreassurance
# Keep existing hooks and append them after
- ~
displayFooter:
- ps_linklist
- ps_customeraccountlinks
- ps_contactinfo
- ps_socialfollow

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_socialfollow This one should be removed.

# Keep existing hooks and append them after
- ~
displayFooterProduct:
- productcomments
- ps_categoryproducts
- ps_crossselling
- ps_googleanalytics

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_googleanalytics I think we don't need this one.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its used for tracking I think, but why do we need a non theme module configured here? I dont get it @jolelievre

- ps_viewedproduct
# Keep existing hooks and append them after
- ~
displayLeftColumn:
- ps_categorytree
- ps_facetedsearch
- ps_brandlist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_brandlist in my opinion, this should be moved to modules to disabled option.

- ps_contactinfo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_contactinfo This one should be removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this should not be there.

- ps_supplierlist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_supplierlist in my opinion, this should be moved to modules to disabled option.

# Keep existing hooks and append them after
- ~
displayContactLeftColumn:
Expand All @@ -101,6 +113,7 @@ global_settings:
- ~
displayContactContent:
- contactform
- ps_contactinfo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_contactinfo This one should be removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, ps_contactinfo should not be here.

# Keep existing hooks and append them after
- ~
displaySearch:
Expand All @@ -110,6 +123,8 @@ global_settings:
displayProductAdditionalInfo:
- ps_sharebuttons
- productcomments
- ps_emailalerts
- ps_viewedproduct

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_viewedproduct This one should be removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda borderline - the hook is required by this module to be there, it tracks the views there, check the code there.

But, does this entry belong to a theme configuration, if it's not visible? Maybe? Or not?

I don't really understand the logic of this whole config thing. Yes, a theme should look somehow when it's installed, but it's the module that says what hooks should be where. 🤔 We decide to change hooks in the next module version and we will adapt the theme YML? Hm hm hm.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps_viewedproduct is already hooked into displayFooterProduct, which is why I think it isn’t needed here. Moreover, this hook isn’t suitable for displaying a product list because it doesn’t take the full width.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tblivet It's there not to display, but to $this->addViewedProduct($this->currentProductId);.

# Keep existing hooks and append them after
- ~
displayProductListReviews:
Expand Down