mac007 Posted June 20, 2008 Share Posted June 20, 2008 Hello, was wandering if anybody out there can help me with the following: We use a third-party shopping cart, but they dont really make it easy to be able to buy "memberships". The way we have it now, is that they buy a "membership-card" (say item code: CLUBMEMBER", which when they buy it along with other products, it automatically discounts all items by 25%... it all works pretty good. EXCEPT that we want to, at the final confirmation page, to automatically show ONLY the people that bought this membership-card "item", a registration form. So my question is: how can I track this "CLUBMEMBER" POST variable along all checkout pages, so that if AND ONLY IF customer does buy it, it will then show "registration" form. I thought about setting a SESSION like "if POST-variable item_code exists and item_code=MEMBERCLUB" then set SESSION "CLUB", and then on confirmation page add something like "if CLUB session is set, then show registration form"... but then I realized that woudlnt work just right, cause if customer decides to delete that CLUBMEMBER item, but leaves other products in cart, then registration form would still show up, even though customer took it off cart... Anyways, not sure if I am making sense. In the end, I am just trying to get around their whole cumbersome ways, and simply make my own script... Any help much appreciated! Quote Link to comment Share on other sites More sharing options...
bobinindia Posted June 20, 2008 Share Posted June 20, 2008 I think you can use a session if I have understood you. You just need to also unset the session if the user deletes 'CLUBMEMBER item'. Quote Link to comment Share on other sites More sharing options...
mac007 Posted June 21, 2008 Author Share Posted June 21, 2008 hmm.. right, to unset it if it's taken of the cart; I guess I just need to somehow figure out how to get that out of the cart; how to have php know that item has been removed. Any thoughts? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.