instead of
if ($(".shopping-cart-wrapper").is(".show")) {
use hasClass(class_name) -> hasClass( "show")
not hasClass(selector) -> hasClass(".show")
if ($(".shopping-cart-wrapper").hasClass("show")) {
instead of
if ($(".shopping-cart-wrapper").is(".show")) {
use hasClass(class_name) -> hasClass( "show")
not hasClass(selector) -> hasClass(".show")
if ($(".shopping-cart-wrapper").hasClass("show")) {
instead of
if ($(".shopping-cart-wrapper").is(".show")) {
use
if ($(".shopping-cart-wrapper").hasClass("show")) {