Suppose in a store there are 500 categories and it’s increasing as per the need. Let’s say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend.

Suppose in a store there are 500 categories and it’s increasing as per the need. Let’s say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend.

What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:
A . create a new layout XML file for the category called catalog_category_view.xml and add the layout modification code
B. create a new layout XML file for the category called catalog_category_view_selectable_<Category ID>_CustomLayout.xml and assign it to the needed categories from backend, and add the layout modification code in it.
C. create a custom layout handle for the category using observer layout_load_before and add the layout modification code
D. create a custom layout handle for the category using observer layout_load_after and add the layout modification code

Answer: C

Latest AD0-E704 Dumps Valid Version with 89 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments