Set “List / Grid” default view mode in catalog.xml for category view

前端 未结 3 2040
轻奢々
轻奢々 2021-01-05 20:24

I\'m trying to do my category view display products in list or grid mode as default.


        

        
3条回答
  •  感动是毒
    2021-01-05 20:54

    You can do this in the layout XML or the "Custom Layout Update" section in admin with the following xml:

    
        _current_grid_modelist
    
    

    Be sure, the toolbar block name was set in the product list block like this:

    product_list_toolbar
    

提交回复
热议问题