// pagination eof
     } else {
         // add PRODUCTS_SEARCH_FALLBACK_SEARCH module code here
         if (!$p and $this->get['skeyword']) {
             // send notification message to admin
             if ($GLOBALS['TSFE']->fe_user->user['username']) {
                 $customer_name = $GLOBALS['TSFE']->fe_user->user['username'];
             } else {
                 $customer_name = 'Customer';
             }
             $message = $customer_name . ' searched for: ' . $this->get['skeyword'];
             mslib_befe::storeNotificationMessage('Customer action', $message);
         }
         // store keyword with negative results
         if ($this->get['skeyword']) {
             mslib_befe::storeProductsKeywordSearch($this->get['skeyword'], 1);
         }
         $output_array['http_header'] = 'HTTP/1.0 404 Not Found';
         $notfound_content = '<div class="main-heading"><h2>' . $this->pi_getLL('no_products_found_heading') . '</h2></div>' . "\n";
         $notfound_content .= '<p>' . $this->pi_getLL('no_products_found_description') . '</p>' . "\n";
     }
 }
 //hook to let other plugins further manipulate the settings
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/products_search.php']['extendProductsSearchPostHook'])) {
     $params = array('content' => &$content, 'output_array' => &$output_array, 'products' => $products, 'pageset' => $pageset, 'notfound_content' => &$notfound_content, 'extendsearch_content' => &$extendsearch_content);
     foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/products_search.php']['extendProductsSearchPostHook'] as $funcRef) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
     }
 }
 if (isset($output_array['http_header']) && $output_array['http_header'] == 'HTTP/1.0 404 Not Found') {
     $content .= $notfound_content;
Exemple #2
0
                     $temp_var_products[$key] = $val;
                 }
             }
             //hook to let other plugins further manipulate the query
             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/includes/ultrasearch_server/default.php']['ultrasearchProductsListingItemPostProc'])) {
                 $params = array('temp_var_products' => &$temp_var_products, 'product' => &$product);
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/includes/ultrasearch_server/default.php']['ultrasearchProductsListingItemPostProc'] as $funcRef) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                 }
             }
             $results_products[] = $temp_var_products;
         }
     } else {
         // no results
         if ($this->post['tx_multishop_pi1']['q']) {
             mslib_befe::storeProductsKeywordSearch($this->post['tx_multishop_pi1']['q'], '1');
         }
     }
 }
 // DEFAULT EMPTY
 $cmsDescriptionArray = array();
 $results['current_categories']['name'] = '';
 $results['categories_description']['header'] = '';
 $results['categories_description']['footer'] = '';
 if (isset($this->get['manufacturers_id']) && is_numeric($this->get['manufacturers_id'])) {
     $strCms = $GLOBALS['TYPO3_DB']->SELECTquery('m.manufacturers_id, mc.content, mc.content_footer, m.manufacturers_name', 'tx_multishop_manufacturers m, tx_multishop_manufacturers_cms mc', "m.manufacturers_id='" . $this->get['manufacturers_id'] . "' AND m.status=1 and mc.language_id='" . $this->sys_language_uid . "' and m.manufacturers_id=mc.manufacturers_id", '', '', '');
     $qryCms = $GLOBALS['TYPO3_DB']->sql_query($strCms);
     if ($GLOBALS['TYPO3_DB']->sql_num_rows($qryCms)) {
         $rowCms = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qryCms);
         //$cmsDescriptionArray['header_title']=$rowCms['manufacturers_name'];
         $cmsDescriptionArray['content'] = $rowCms['content'];
Exemple #3
0
             $temp_var_products['manufacturers_name'] = $product['manufacturers_name'];
             $temp_var_products['price_excluding_vat'] = $price_excluding_vat;
             $temp_var_products['old_price'] = $old_price;
             $temp_var_products['special_price'] = $specials_price;
             $temp_var_products['price'] = $price;
             foreach ($product as $key => $val) {
                 if (strstr($key, "a_")) {
                     $temp_var_products[$key] = $val;
                 }
             }
             $results_products[] = $temp_var_products;
         }
     } else {
         // no results
         if ($this->post['skeyword']) {
             mslib_befe::storeProductsKeywordSearch($this->post['skeyword'], '1');
         }
     }
 }
 $results['products'] = $results_products;
 $results['total_rows'] = $pageset['total_rows'];
 $results['pagination']['offset'] = $offset;
 $results['pagination']['limit'] = $limit;
 $results['pagination']['totpage'] = $totpage;
 if ($p == 1) {
     $results['pagination']['prev'] = false;
     $results['pagination']['first'] = false;
 } else {
     $results['pagination']['prev'] = $p - 1;
     $results['pagination']['prevText'] = mslib_befe::strtoupper($this->pi_getLL('previous'));
     $results['pagination']['first'] = mslib_befe::strtoupper($this->pi_getLL('first'));