Thank you. That removed the initial problem (Column 'DetailOrderID' cannot be null).
However...things are not all fine. Nothing works without this little bit.
Ray had written some code so that a DetailCode would be inserted in the ps4_orderdetails table.
With each order, a code is supposed to be generated and recorded. It was working before I switched out for the checkout wizard instead of PowerStore.
It's not being generated now. Could you please take a look? You should have the necessary pages, checkout7.php and confirm7.php
Upon purchase, the customer is sent a Product Access LINK like this:
<a href="http://www.lovetakeslearning.com/products/<?php echo $row_DigitalGoods['DetailDigitalGood']; ?>?key=<?php echo $row_DigitalGoods['DetailCode']; ?>">http://www.lovetakeslearning.com/products/<?php echo $row_DigitalGoods['DetailDigitalGood']; ?>?key=<?php echo $row_DigitalGoods['DetailCode']; ?></a>
I am also attaching the admin's order detail page. This page is meant to display the product access link as directly above.