I don't even know how to ask this question, but basically, I added sub-products to my ecommerce site and had to do quite a bit of nudging to make it happen. The instructions and patch files were kind of scattered, no definitive way to make it work, no discussion after 11/15 for some reason, a total dead-end. Any way, checkouts through auth.net stopped working once my sub-products were all sorted it out. I've traced the flow of my transaction data back and forth through the cart.module, authorize_net.module, the apparel.module, the store.module, and probably a few others by now.
I think I've isolated my problem, but it's so tremendous, I can't imagine how I'll ever make heads or tails of this. The culprit is the following query:
$result = db_query('SELECT stp.*, r.rtxnid as rtxnid, r.rnid as rnid, p.ptype FROM {ec_transaction_product} stp LEFT JOIN {ec_renewal} r ON stp.txnid = r.txnid LEFT JOIN {ec_product} p ON stp.nid = p.nid WHERE stp.txnid = %d', $t->txnid);
I'm not a DBA, and all of the ALIASes and JOINs in this query leave me scratching my head. I've absolutely done my best to get this to a place where I'm not asking a question like, "how come ecomm checkout doesn't work?" so if anyone in the community can provide the slightest glimpse of what this query does, I'd appreciate it. If I could get this query to operate, I'm pretty certain the rest would fall into place as the next steps after this query are to simply load the auth_net form with data and submit. My auth.net transactions were working before my entry into the world of sub-products so I think once I figure out how to adjust this query so the right data is returned, it will all come together.