/** * Gets all transaction related info about current cart transaction * * @param void * @return object, false on no results */ public function getTransactionData() { // If session expired tId will not be saved if (empty($this->cart->tId)) { // Try to find if there is a pending transaction for this cart in DB and use it $sql = "SELECT `tId` FROM `#__cart_transactions` WHERE `crtId` = {$this->cart->crtId} AND `tStatus` = 'pending'"; $this->_db->setQuery($sql); $tId = $this->_db->loadResult(); } else { $tId = $this->cart->tId; } if (!$tId) { return false; } // Get info $transactionInfo = parent::getTransactionInfo($tId); // Set transaction id session value (needed for expired session) $this->cart->tId = $transactionInfo->tId; // Get steps $steps = $this->getCheckoutSteps(); $transactionInfo->steps = $steps; return $transactionInfo; }