Most of you are probably familiar with my upload module, which lets customers upload an image or other file, and attach it to an item they're buying. I just found out that it doesn't work correctly when the store has turned on "Defer creation of empty baskets." The store doesn't create an entry in the Baskets table for the shopper until they actually put something in the basket. But my module operates before the Add-to-basket occurs, and it uses the basket ID to identify the uploaded file.
I've been studying the LSK, and it looks like I can fix my module by adding some code like this, just before the point where it needs to know the basket ID:
Can someone please confirm that I've understood this correctly?
Thanks --
I've been studying the LSK, and it looks like I can fix my module by adding some code like this, just before the point where it needs to know the basket ID:
Code:
<MvIF EXPR="{ g.Basket:basket_id EQ 'provisional' }"> <MvASSIGN NAME="l.xx" VALUE="{ [g.Module_Library_DB].Basket_Create(g.Basket) }"> </MvIF>
Thanks --
Comment