0

Is anyone know how I can add custom block to price filter in layered navigation?

I curently moved my block with jQuery, but what if someone add more attributes? Maybe I could add class to price filter?

$('#narrow-by-list > div:nth-child(7)').append( $('#myBlock') );
  • do you want show static block ? – Pawan Feb 15 '19 at 4:45
  • Yes, with my custom template, but not under layered navigation but inside. – BartZalas Feb 15 '19 at 9:09
  • could you add image where you want and How ? – Pawan Feb 16 '19 at 2:01
  • In place when you have filter for price. There is no easy way and XML update there. – BartZalas Feb 16 '19 at 10:00
0

I set my price attribute to be last one and staid with my jQuery

<script>
    require(
        [
            'jquery'
        ],
        function(
            $
        ) {
            $('#narrow-by-list > div:last-child .filter-options-content').append( $('#myDiv') );


        }

    );

</script>

also can be done with if statement

if ($(".filter-current").is(':contains("Price")')) {
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.