跳至內容
選單
此問題已被標幟
2 回覆
8317 瀏覽次數

Something like this is needed, but unfortunately it doesn't work:

<template id="..." inherit_id="..." priority="5"/>

頭像
捨棄
作者 最佳答案

Setting priority for already defined templates doesn't seem to be possible. At least in a flexible way which would take care of allowing further overriding.

So, the only way to e.g. reorder Product Categories and Product Attribute's Filters in Shop would be to employ JS:

        var $attr_to_reorder = $('.js_attributes', oe_website_sale);
        var $categ_to_reorder = $('#products_grid_before > ul', oe_website_sale);
        $categ_to_reorder.insertBefore($attr_to_reorder);

 

頭像
捨棄
最佳答案

Is there a way to do this in v13?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 19
8873
0
12月 24
1336
0
12月 24
1174
2
7月 24
3125
2
3月 22
12099