Following is a part of an AJAX functionality to add classes and packs to session cart:- The jquery part The AJAX request processing php part – The strange thing No matter whether I pass true/false (by calling addClassToCart() and addPackToCart()), always the code to add class to session cart executes. If I put echo statements there like this:- This is