• Resolved krisnl

    (@krisnl)


    Hi,

    My Woocommerce Minicart is always clickable. Even if there are no products inside the cart. Is there any way to disable this url if there are no products in the cart? Can i add something to function.php?

    How would you do this?

    Image of my minicart:
    https://ibb.co/qmcVz2r

    Greetings,

    Kris

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s possible to accomplish your goal.
    Look in your theme folder, if there’s a file called “footer-shop.php”, open that file and add JQuery script at the bottom. The Jquery will look for the id and the value of the minicart’s cell, check for the value not equal “0.00”, then display=block, otherwise display=none. You can use Jquery $(“#amount”).css(“display”, “none”); something like that in your script. Or you can use hide(), show() functions to do that job.

    Plugin Support Steve E.a11n

    (@woosteve)

    Automattic Happiness Engineer

    There are no recent responses to this thread so I’ll mark this as resolved. Please feel free to open a new thread if you have any further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clickable minicart’ is closed to new replies.