Jump to content

"AfterShoppingCartCheckout" Action Hook


laszlof

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated