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)
30 'container2' => array(
31 array(
'oxartnum',
'oxarticles', 1, 0, 0),
32 array(
'oxtitle',
'oxarticles', 1, 1, 0),
33 array(
'oxean',
'oxarticles', 1, 0, 0),
34 array(
'oxmpn',
'oxarticles', 0, 0, 0),
35 array(
'oxprice',
'oxarticles', 0, 0, 0),
36 array(
'oxstock',
'oxarticles', 0, 0, 0),
37 array(
'oxid',
'oxarticles', 0, 0, 1)
53 $sVendorId = $oConfig->getRequestParameter(
'oxid');
54 $sSynchVendorId = $oConfig->getRequestParameter(
'synchoxid');
58 $sQAdd =
' from ' . $sArtTable .
' where ' . $sArtTable .
'.oxshopid="' . $oConfig->getShopId() .
'" and 1 ';
59 $sQAdd .= $oConfig->getConfigParam(
'blVariantsSelection') ?
'' :
" and $sArtTable.oxparentid = '' and $sArtTable.oxvendorid != " . $oDb->quote($sSynchVendorId);
62 if ($sSynchVendorId && $sSynchVendorId != $sVendorId) {
63 $sQAdd =
" from $sO2CView left join $sArtTable on ";
64 $sQAdd .= $oConfig->getConfigParam(
'blVariantsSelection') ?
" ( $sArtTable.oxid = $sO2CView.oxobjectid or $sArtTable.oxparentid = oxobject2category.oxobjectid )" :
" $sArtTable.oxid = $sO2CView.oxobjectid ";
65 $sQAdd .=
'where ' . $sArtTable .
'.oxshopid="' . $oConfig->getShopId() .
'" and ' . $sO2CView .
'.oxcatnid = ' . $oDb->quote($sVendorId) .
' and ' . $sArtTable .
'.oxvendorid != ' . $oDb->quote($sSynchVendorId);
67 $sQAdd =
" from $sArtTable where $sArtTable.oxvendorid = " . $oDb->quote($sVendorId);
70 $sQAdd .= $oConfig->getConfigParam(
'blVariantsSelection') ?
'' :
" and $sArtTable.oxparentid = '' ";
89 $sQ .= $this->
getConfig()->getConfigParam(
'blVariantsSelection') ?
' group by ' . $sArtTable .
'.oxid ' :
'';
102 if ($oConfig->getRequestParameter(
'all')) {
107 if (is_array($aRemoveArt)) {
108 $sSelect =
"update oxarticles set oxvendorid = null where oxid in ( " . implode(
", ",
oxDb::getInstance()->quoteArray($aRemoveArt)) .
") ";
110 $this->
resetCounter(
"vendorArticle", $oConfig->getRequestParameter(
'oxid'));
122 $soxId = $oConfig->getRequestParameter(
'synchoxid');
124 if ($oConfig->getRequestParameter(
'all')) {
129 if ($soxId && $soxId !=
"-1" && is_array($aAddArticle)) {
131 $sSelect =
"update oxarticles set oxvendorid = " . $oDb->quote($soxId) .
" where oxid in ( " . implode(
", ",
oxDb::getInstance()->quoteArray($aAddArticle)) .
" )";
133 $oDb->Execute($sSelect);