22 array(
'oxartnum',
'oxarticles', 1, 0, 0),
23 array(
'oxtitle',
'oxarticles', 1, 1, 0),
24 array(
'oxean',
'oxarticles', 1, 0, 0),
25 array(
'oxmpn',
'oxarticles', 0, 0, 0),
26 array(
'oxprice',
'oxarticles', 0, 0, 0),
27 array(
'oxstock',
'oxarticles', 0, 0, 0),
28 array(
'oxid',
'oxarticles', 0, 0, 1)
49 $sQAdd =
" from $sArticleTable where 1 ";
50 $sQAdd .=
$myConfig->getConfigParam(
'blVariantsSelection') ?
'' :
" and $sArticleTable.oxparentid = '' ";
54 $blVariantsSelectionParameter =
$myConfig->getConfigParam(
'blVariantsSelection');
55 $sSqlIfTrue =
" ({$sArticleTable}.oxid=oxobject2category.oxobjectid " .
56 "or {$sArticleTable}.oxparentid=oxobject2category.oxobjectid)";
57 $sSqlIfFalse =
" $sArticleTable.oxid=oxobject2category.oxobjectid ";
58 $sVariantsSqlSnippet = $blVariantsSelectionParameter ? $sSqlIfTrue : $sSqlIfFalse;
60 $sQAdd =
" from {$sView} as oxobject2category left join {$sArticleTable} on {$sVariantsSqlSnippet}" .
61 " where oxobject2category.oxcatnid = " . $oDb->quote($sSelId) .
" ";
65 $sQAdd .=
" and $sArticleTable.oxid IS NOT NULL ";
68 $sQAdd .=
" and $sArticleTable.oxid != " . $oDb->quote($sSynchSelId) .
" ";
86 $sQ .= $this->
getConfig()->getConfigParam(
'blVariantsSelection') ?
' group by ' . $sArtTable .
'.oxid ' :
'';
99 $sQ =
"update oxarticles set oxarticles.oxbundleid = '' where oxarticles.oxid = {$sQuotedChosenArt} ";
112 $sQ =
"update oxarticles set oxarticles.oxbundleid = {$sQuotedChosenArt} " .
113 "where oxarticles.oxid = {$sQuotedOxId} ";