• Products with a visibilty off “Private” are displayed in the carousel. Please add a setting to not include them in the carousel.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alijens

    (@alijens)

    Something like this. I have tested this code in the console and it works, but for some reason it does not work when I insert it in the javascript window in the settings menu.

    var images = document.querySelectorAll(‘img’);

    images.forEach((image) => {

    var res = image.alt.includes(‘Private’);

    if(res){
    image.parentNode.parentNode.parentNode.remove();
    }

    });

    Maybe you have a better sollution for this?

    • This reply was modified 1 year, 7 months ago by alijens.
    • This reply was modified 1 year, 7 months ago by alijens.
    Thread Starter alijens

    (@alijens)

    Respond please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don’t show Private products’ is closed to new replies.