daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function bookNowAction()
  2.     {
  3.         $sessionManager = new TP24_Model_Tour_SessionManager;
  4.         $sessionManager->getSession()->productParam['optionCode'] = $this->getRequest()->getParam('otherOptionCode');
  5.         $sessionManager->getSession()->productParam['pricingRecommendedAdultPrice'] = $this->getRequest()->getParam('pricingRecommendedAdultPrice');
  6.         $sessionManager->getSession()->productParam['pricingRecommendedSeniorPrice'] = $this->getRequest()->getParam('pricingRecommendedSeniorPrice');
  7.         $sessionManager->getSession()->productParam['pricingRecommendedYouthPrice'] = $this->getRequest()->getParam('pricingRecommendedYouthPrice');
  8.         $sessionManager->getSession()->productParam['pricingRecommendedChildPrice'] = $this->getRequest()->getParam('pricingRecommendedChildPrice');
  9.         $sessionManager->getSession()->productParam['pricingRecommendedInfantPrice'] = $this->getRequest()->getParam('pricingRecommendedInfantPrice');
  10.         $sessionManager->getSession()->productStatus = array();
  11.         $sessionManager->getSession()->productStatus['productCode'] = $this->getRequest()->getParam('productCode');
  12.         $booking = TP24_Model_Tour_Booking::createBooking();
  13.         $booking->save();
  14.         $bookingID = $sessionManager->addBooking($booking);
  15.         $this->_redirect($this->_helper->Url->url(array('bookingID' => $bookingID,'code'=>303), 'tour-payment'));
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top