} } elseif ($att_symbols == null) { removeProducts($pid, $att_colls, $att_topics); } if ($att_topics != null) { removeProducts($pid, $att_colls, $att_symbols); foreach ($att_topics_array as $att_topics_id) { $class_s->addProduct($att_topics_id, $pid, $username); } } elseif ($att_topics == null) { removeProducts($pid, $att_colls, $att_symbols); } } } foreach ($products_to_update as $pid) { $class_pm->updateDetail($pid, $gender, $agegroup); if ($addtoamvd == '1') { if ($amvdcatid == '0') { $catalog_id = $class_jc->addProduct('5', $pid); $amvdcatid = $catalog_id[0]; } if ($amvdprice_new > 0) { $sda = array('price_new' => $amvdprice_new); $class_jc->updateField($amvdcatid, $sda); } } $class_pm->saveDescription($pid, $languages_id, $pname, $pdesc, $pkeys, $pshortname, null, null, $topicname, $colname, null, null); $pda['name'] = $pname; $pda['description'] = $pdesc; $pda['keywords'] = $pkeys; $pda['status_price'] = '1';