Jump to content
xt:Commerce Community Forum

Nur Masterartikel bei Suche


Leex

Recommended Posts

Hallo,

hier findet die Abfrage statt.

$this->setSQL_WHERE("AND (pd.products_keywords LIKE '%".$keywords."%' or pd.products_name LIKE '%".$keywords."%' or p.products_model LIKE '%".$keywords."%' or p.products_ean LIKE '%".$keywords."%' ".$sdesc.$desc.")");[/CODE]

Viele Grüße,

df:big

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Hallo,

dies bekommst du doch durch Änderung des Hook-Points: class.getProductSQL_query.php:F_Listing gelöst!

Den HookPoint findest du im installierten master_slave Modul!

ändere:

$check_pos = strstr($this->position, 'plugin_ms');

$check_pos_s = strstr($this->position, 'getSearchData');


if (!$check_pos && !$check_pos_s && USER_POSITION != 'admin' )

$this->setSQL_WHERE("and (p.products_master_model='' or p.products_master_model IS NULL) ");
in:
$check_pos = strstr($this->position, 'plugin_ms');

/*$check_pos_s = strstr($this->position, 'getSearchData');*/


if (!$check_pos && !$check_pos_s && USER_POSITION != 'admin' )

$this->setSQL_WHERE("and (p.products_master_model='' or p.products_master_model IS NULL) ");

So sollten Slave Artikel aus der Suche ausgeblendet werden!

Link to comment
Share on other sites

  • 4 months later...

das hier geht auch:

$this->setSQL_WHERE("AND (p.products_master_flag = 1) AND (pd.products_keywords LIKE '%".$keywords."%' or pd.products_name LIKE '%".$keywords."%' or p.products_model LIKE '%".$keywords."%' or p.products_ean LIKE '%".$keywords."%' ".$sdesc.$desc.")");[/PHP]

"AND (p.products_master_flag = 1)" wurde ergänzt.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...