Author Topic: Coder needed for Parameter Search SEF  (Read 2428 times)

korb

  • Quality&Testing Team
  • Full Member
  • *
  • Posts: 685
  • VM 2.0 in heavy testing
    • Buy my work
Coder needed for Parameter Search SEF
« on: August 24, 2008, 22:30:31 pm »
Hi
I am looking for a coder to help me build the rewrite rules for Advanced Search According to Parameters feature.

At this point, my code builds links to product type parameter search form like this .../?itemid=0
and lands on homepage.

Code: [Select]
          case 'shop.parameter_search': // V 1.4.7
                  if ($sefConfig->shVmInsertShopName) $title[] = $shShopName;
                  if ($shVmCChk) $title[] = 'vmchk';
  $title[] =  $sh_LANG[$shLangIso]['_PARAMETER_SEARCH'];
 
  break;
                case 'shop.parameter_search_form':// V 1.4.7
                  if ($sefConfig->shVmInsertShopName) $title[] = $shShopName;
                  if ($shVmCChk) $title[] = 'vmchk';
                 //
 
  if (!empty($product_type_id)) {
  $q  = "SELECT product_type_id, product_type_name FROM #__{vm}_product_type WHERE product_type_id = ".product_type_id;
  $database->setQuery($q);

                 
 
    if (shTranslateUrl($option, $shLangName))
    $product_type_name = $database->loadObject( );
    else $product_type_name = $database->loadObject( false);
 
  if ($product_type_name) {                                      // if we found a title for this element
          $title = $product_type_name->title;
// $title = array_merge( $title, $product_type_name->product_type_name );
$title[] =  $sh_LANG[$shLangIso]['_PARAMETER_SEARCH_FORM'];
                    }
   }
   
  shRemoveFromGETVarsList('shop.parameter_search_form');
  shRemoveFromGETVarsList('product_type_id'); 
  shRemoveFromGETVarsList('itemid');
  break;

Please HELP,
Danny