public function getlistAction()
 {
     $ar_res = array();
     $ids = $this->_getParam('ids');
     if ($ids) {
         $ar_ids = explode(",", $ids);
         foreach ($ar_ids as $key => $val) {
             $ar_ids[$key] = $val . "-1";
         }
         $ids_str = implode(",", $ar_ids);
         $Settings = new Settings();
         $settings = $Settings->get('partner_id');
         $partner_id = $settings['s_val'];
         $settings = $Settings->get('auth_code');
         $auth_code = $settings['s_val'];
         $url_page = 'https://my-shop.ru/cgi-bin/p/info.pl';
         $post_str = "version=1.8&partner={$partner_id}&auth_method=plain&auth_code={$auth_code}&request=list_cart&cart={$ids_str}";
         $s = GetWebPage($url_page, $RetStatus, $post_str, true);
         if (preg_match('/<error>(.*)<\\/error>/Usi', $s, $r)) {
             if ($r[1] == 0) {
                 // no error
                 if (preg_match_all('/<id>(.*)<\\/id>.*<cost>(.*)<\\/cost>/Usi', $s, $t)) {
                     $Product = new Product();
                     foreach ($t[1] as $key => $val) {
                         $ar_res[] = array('id' => $t[1][$key], 'cost' => number_format($t[2][$key], 2, '.', ''));
                         $Product->check_prodcut_price($t[1][$key], $t[2][$key]);
                     }
                 }
             }
         }
     }
     if ($ar_res) {
         print_r(json_encode($ar_res));
     } else {
         print_r(json_encode('err'));
     }
     $this->_helper->viewRenderer->setNoRender();
     $this->_helper->layout->disableLayout();
 }