@@ 629-637 (lines=9) @@ | ||
626 | FALSE |
|
627 | ); |
|
628 | // did we gets the goods ? |
|
629 | if ( $reg_step_obj instanceof EE_SPCO_Reg_Step ) { |
|
630 | // set reg step order based on config |
|
631 | $reg_step_obj->set_order( $order ); |
|
632 | // add instantiated reg step object to the master reg steps array |
|
633 | $this->checkout->add_reg_step( $reg_step_obj ); |
|
634 | } else { |
|
635 | EE_Error::add_error( |
|
636 | __( 'The current step could not be set.', 'event_espresso' ), |
|
637 | __FILE__, __FUNCTION__, __LINE__ |
|
638 | ); |
|
639 | return false; |
|
640 | } |
|
@@ 676-683 (lines=8) @@ | ||
673 | // because the reg_url_link is present in the request, this is a return visit to SPCO, so we'll get the transaction data from the db |
|
674 | $transaction = $TXN_model->get_transaction_from_reg_url_link( $this->checkout->reg_url_link ); |
|
675 | // verify transaction |
|
676 | if ( $transaction instanceof EE_Transaction ) { |
|
677 | // and get the cart that was used for that transaction |
|
678 | $this->checkout->cart = $this->_get_cart_for_transaction( $transaction ); |
|
679 | return $transaction; |
|
680 | } else { |
|
681 | EE_Error::add_error( __( 'Your Registration and Transaction information could not be retrieved from the db.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
|
682 | return NULL; |
|
683 | } |
|
684 | } |
|
685 | ||
686 |