I'm working on a project that uses BasketInfo to store data about a customer's eligibility for certain types of discounts. Since customers remain logged in after completing a purchase, we want to preserve this BasketInfo status as well. I started by adding a system action, triggered by AUTH, to save the BasketInfo data in a global variable. That allows it to be preserved when the store deletes all the basket-related data from the DB. Now I just need to read that variable and create a new BasketInfo record, at some point later in the process. But I can't figure out when that is?
I thought that Merchant cleared the basket during processing of a successful AUTH, but that doesn't seem to be the case. A debug message inserted into LogModule_Screen() shows that the BasketInfo records still exist when this function is executed for INVC. But after completing a purchase, when I click to any other page in the store, the BasketInfo is gone. When did it get deleted? I've been through the LSK, but I can't seem to find the code that does this.
Thanks --
I thought that Merchant cleared the basket during processing of a successful AUTH, but that doesn't seem to be the case. A debug message inserted into LogModule_Screen() shows that the BasketInfo records still exist when this function is executed for INVC. But after completing a purchase, when I click to any other page in the store, the BasketInfo is gone. When did it get deleted? I've been through the LSK, but I can't seem to find the code that does this.
Thanks --
Comment