laszlof Posted September 25, 2010 Share Posted September 25, 2010 Thought I'd see if anyone has experienced this issue before, as I just now noticed it when running some tests. This action hook seems to leave out any configurable options for the order. The API docs state that it should output this. Heres the code I'm using just for testing: <?php function show_vars($vars) { print "<pre>"; print_r(get_defined_vars()); print "</pre>"; } add_hook("AfterShoppingCartCheckout", 1, "show_vars"); ?> I place an order, setup the configurable options, and here is the output after the checkout: Array ( [vars] => Array ( [OrderID] => 1241 [OrderNumber] => 1114035302 [Products] => Array ( [0] => 48460 ) [Domains] => Array ( ) [Addons] => Array ( ) [Renewals] => Array ( ) [PaymentMethod] => authorize [invoiceID] => ) ) The "Addons" are complete empty. I would expect this to have the configurable options listed here. Conversely, I switched to the "PreCalculateCartTotals" action hook, and it does have the information I am looking for, however, this is not the section I need to hook into. Short of querying tblorders/tblhosting, how would I go about getting the configuration options for a particular order at this phase of the checkout process? 0 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.