Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = $modx->makeUrl(
- $modx->getOption('redirectTo',$scriptProperties,'1')
- );
- $modx->sendRedirect($url //
- ##########
- /**
- * Сохраняет данные последнего заказа в сессию
- *
- * @param array $order
- * @return boolean
- */
- public function setOrderDataSession( $order = array() ){
- $_SESSION['shk_lastOrder'] = array(
- 'id' => $order['id'],
- 'price' => $order['price'],
- 'currency' => $order['currency'],
- 'date' => date('d.m.Y',strtotime($order['date'])),
- 'full_date' => $order['date'],
- 'email' => $order['email'],
- 'phone' => $order['phone'],
- 'delivery' => $order['delivery'],
- 'payment' => $order['payment'],
- 'status' => $order['status'],
- 'userid' => !empty($order['userid']) ? $order['userid'] : 0
- );
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement