@@ 651-659 (lines=9) @@ | ||
648 | FALSE |
|
649 | ); |
|
650 | // did we gets the goods ? |
|
651 | if ( $reg_step_obj instanceof EE_SPCO_Reg_Step ) { |
|
652 | // set reg step order based on config |
|
653 | $reg_step_obj->set_order( $order ); |
|
654 | // add instantiated reg step object to the master reg steps array |
|
655 | $this->checkout->add_reg_step( $reg_step_obj ); |
|
656 | } else { |
|
657 | EE_Error::add_error( |
|
658 | __( 'The current step could not be set.', 'event_espresso' ), |
|
659 | __FILE__, __FUNCTION__, __LINE__ |
|
660 | ); |
|
661 | return false; |
|
662 | } |
|
@@ 698-705 (lines=8) @@ | ||
695 | // 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 |
|
696 | $transaction = $TXN_model->get_transaction_from_reg_url_link( $this->checkout->reg_url_link ); |
|
697 | // verify transaction |
|
698 | if ( $transaction instanceof EE_Transaction ) { |
|
699 | // and get the cart that was used for that transaction |
|
700 | $this->checkout->cart = $this->_get_cart_for_transaction( $transaction ); |
|
701 | return $transaction; |
|
702 | } else { |
|
703 | EE_Error::add_error( __( 'Your Registration and Transaction information could not be retrieved from the db.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__); |
|
704 | return NULL; |
|
705 | } |
|
706 | } |
|
707 | ||
708 |