Shop Hosting
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: advanced_search_result.php - SP1d

    Gradler

    • Viel Schreiber
    • Beiträge: 2.083
    • Geschlecht:
    advanced_search_result.php - SP1d
    am: 21. Juli 2012, 00:40:20
    Wie kann dieser Code in die aktuelle advanced_search_result.php eingebaut werden?
    Code: PHP  [Auswählen]
    suche (ca. Zeile 117):
      //price filters
      $pfrom_check = $pfrom && is_numeric($pfrom) ? " AND (IF(s.status = 1 AND p.products_id = s.products_id, s.specials_new_products_price, p.products_price) >= ".$pfrom.") " : "";
      $pto_check = $pto && is_numeric($pto) ? " AND (IF(s.status = 1 AND p.products_id = s.products_id, s.specials_new_products_price, p.products_price) <= ".$pto." ) " : "";

    und füge danach ein:
      if(USE_LIVE_SHOPPING == 'true'){
      $pfrom_check .= " AND (IF(ls.status = '1' AND p.products_id = ls.products_id, ls.live_shopping_new_products_price, p.products_price) >= ".$pfrom.") ";
      }
    ----------------------------------------------------------------------------------------------
    suche (jetzt ca. Zeile 124):
      $pto_check = $pto && is_numeric($pto) ? " AND (IF(s.status = 1 AND p.products_id = s.products_id, s.specials_new_products_price, p.products_price) <= ".$pto." ) " : "";

    und füge danach ein
      if(USE_LIVE_SHOPPING == 'true'){
      $pto_check .= " AND (IF(ls.status = '1' AND p.products_id = ls.products_id, ls.live_shopping_new_products_price, p.products_price) <= ".$pto." ) ";
      }
    ----------------------------------------------------------------------------------------------
    suche (jetzt ca. Zeile 206):
              if (SEARCH_IN_ATTR == 'true') {
                 $where_str .= "OR (pov.products_options_values_name LIKE ('%".$keyword."%') ";
                 $where_str .= ($ent_keyword) ? "OR pov.products_options_values_name LIKE ('%".$ent_keyword."%') " : '';

    und füge danach ein
              if(USE_LIVE_SHOPPING == 'true'){
                $from_str .= "LEFT OUTER JOIN ".TABLE_LIVE_SHOPPING." AS ls ON (p.products_id = ls.products_id) AND ls.status = '1'";
              }


    Linkback: https://www.modified-shop.org/forum/index.php?topic=21251.0
    Trade Republic - Provisionsfrei Aktien handeln

    DirkK

    • Fördermitglied
    • Beiträge: 230
    • Geschlecht:
    Re: advanced_search_result.php - SP1d
    Antwort #1 am: 21. Juli 2012, 21:39:21
    mhhhh ... diesmal etwas schwerer.

    Da in der "alten" Datei bei den ersten Zwei zu ersetzenden Stellen was mit .$pto. steht, würde ich behaupten das die Änderungen zwischen Zeile 132-139 gemacht werden müssen. Aber wo genau da bin ich überfragt.

    Die dritte Änderung ist hingegen einfach, da sich die Zeile (217-219) nicht geändert hat :

    Such:
    Code: PHP  [Auswählen]
    if (SEARCH_IN_ATTR == 'true') {
    $where_str .= "OR (pov.products_options_values_name LIKE ('%".$keyword."%') ";
                 $where_str .= ($ent_keyword) ? "OR pov.products_options_values_name LIKE ('%".$ent_keyword."%') " : '';

    und füge danach ein:
    Code: PHP  [Auswählen]
    if(USE_LIVE_SHOPPING == 'true'){
                $from_str .= "LEFT OUTER JOIN ".TABLE_LIVE_SHOPPING." AS ls ON (p.products_id = ls.products_id) AND ls.status = '1'";
              }
    2 Antworten
    1805 Aufrufe
    01. Dezember 2016, 07:51:47 von spacebon
    5 Antworten
    5828 Aufrufe
    03. Dezember 2015, 17:44:20 von noRiddle (revilonetz)
    3 Antworten
    4701 Aufrufe
    27. Juli 2011, 20:27:17 von Tomcraft
    2 Antworten
    2259 Aufrufe
    01. März 2015, 16:27:14 von KAT
               
    anything