Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8338 Vistas

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

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

Avatar
Descartar
Autor Mejor respuesta

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);

 

Avatar
Descartar
Mejor respuesta

Is there a way to do this in v13?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 19
8889
0
dic 24
1347
0
dic 24
1178
2
jul 24
3131
2
mar 22
12123