21 array(
'oxartnum',
'oxarticles', 1, 0, 0 ),
22 array(
'oxtitle',
'oxarticles', 1, 1, 0 ),
23 array(
'oxean',
'oxarticles', 1, 0, 0 ),
24 array(
'oxmpn',
'oxarticles', 0, 0, 0 ),
25 array(
'oxprice',
'oxarticles', 0, 0, 0 ),
26 array(
'oxstock',
'oxarticles', 0, 0, 0 ),
27 array(
'oxid',
'oxarticles', 0, 0, 1 )
48 $sQAdd =
" from $sArticleTable where 1 ";
49 $sQAdd .=
$myConfig->getConfigParam(
'blVariantsSelection' )?
'':
" and $sArticleTable.oxparentid = '' ";
53 $sQAdd =
" from $sO2CView as oxobject2category left join $sArticleTable on ";
54 $sQAdd .=
$myConfig->getConfigParam(
'blVariantsSelection' )?
" ($sArticleTable.oxid=oxobject2category.oxobjectid or $sArticleTable.oxparentid=oxobject2category.oxobjectid)":
" $sArticleTable.oxid=oxobject2category.oxobjectid ";
55 $sQAdd .=
" where oxobject2category.oxcatnid = " . $oDb->quote( $sSelId ) .
" ";
59 $sQAdd .=
" and $sArticleTable.oxid IS NOT NULL ";
62 $sQAdd .=
" and $sArticleTable.oxid != " . $oDb->quote( $sSynchSelId ) .
" ";
80 $sQ .= $this->
getConfig()->getConfigParam(
'blVariantsSelection' ) ?
' group by '.$sArtTable.
'.oxid ' :
'';
97 'delete from oxobject2action '
98 .
'where oxactionid='.$oDb->quote($sActionId)
99 .
' and oxclass = "oxarticle"'
115 'delete from oxobject2action '
116 .
'where oxactionid='.$oDb->quote($sActionId)
117 .
' and oxclass = "oxarticle"'
120 $oObject2Promotion =
oxNew(
"oxbase" );
121 $oObject2Promotion->init(
'oxobject2action' );
122 $oObject2Promotion->oxobject2action__oxactionid =
new oxField( $sActionId );
123 $oObject2Promotion->oxobject2action__oxobjectid =
new oxField( $sArticleId );
124 $oObject2Promotion->oxobject2action__oxclass =
new oxField(
"oxarticle" );
125 $oObject2Promotion->save();