ok, then check if the element with class "shopping-cart-wrapper" exists in the moment when you work with it
(let set javascript breakpoint at the line
if ($(".shopping-cart-wrapper").hasClass("show")) {
and check in console
$(".shopping-cart-wrapper").length