$diamond_clarity = $diamond_clarity[$_POST['diamond_clarity']];
     $diamond_stone_cut = $diamond_stone_cut[$_POST['diamond_stone_cut']];
     $diamond_girdle = $diamond_girdle[$_POST['diamond_girdle']];
     $diamond_polish = $diamond_polish[$_POST['diamond_polish']];
     $diamond_certificate_type = $certificate_type[$_POST['diamond_certificate_type']];
     $length_expandable = tep_db_prepare_input($_POST['length_expandable']);
     $optical_property = $optical_property[$_POST['optical_property']];
     $chain_type = (int) $_POST['chain_type'];
     //$class_pm->saveDesc2($products_id, $clasp_type, $setting_type, $stone_total, $stone_cut, $stone_shape, $stone_size, $ring_resizeable, $gem_type, $pearls_total, $pearls_type, $pearls_color, $pearls_size, $pearls_shape, $pearls_shine, $pearls_surface, $height, $width, $weight, $diameter, $back_finding, $diamond_total_weight, $diamond_color, $diamond_clarity, $diamond_stone_cut, $diamond_girdle, $diamond_polish, $diamond_certificate_type, $length_expandable, $optical_property, $chain_type, $length);
     $class_pm->saveDesc2($products_id, $stone_cut, $stone_shape, $stone_size, $ring_resizeable, $pearls_total, $pearls_type, $pearls_color, $pearls_size, $pearls_shape, $pearls_shine, $pearls_surface, $height, $width, $weight, $diameter, $back_finding, $diamond_total_weight, $diamond_color, $diamond_clarity, $diamond_stone_cut, $diamond_girdle, $diamond_polish, $diamond_certificate_type, $length_expandable, $optical_property, $length, $chain_type);
     $content .= 'UPDATED';
     echo utf8_encode($content);
     exit;
 } elseif ($_POST['me_action'] == 'UPDATEFLAGCONTENTIMPROVED') {
     $status = tep_db_prepare_input($_POST['status']);
     $class_pm->updateFlagContentImproved($products_id, $status);
     echo 'OK';
     exit;
 } elseif ($_POST['me_action'] == 'CHANGETOAMDECUT') {
     $el_cut_id = tep_db_prepare_input($_POST['cut_id']);
     echo changeToAmazonDeCut($el_cut_id);
     exit;
 } elseif ($_POST['me_action'] == 'CHANGETOAMDESTONETYPE') {
     $stone_type = tep_db_prepare_input($_POST['stone_type']);
     echo changeToAmazonDeStoneType($stone_type, 'ID');
     exit;
 } elseif ($_POST['me_action'] == 'MEASUREMENTSAVE') {
     $products_id = tep_db_prepare_input($_POST['products_id']);
     $pmsr_id = tep_db_prepare_input($_POST['pmsr_id']);
     $measurements_value = tep_db_prepare_input($_POST['msr_val']);
     list($tmp, $products_articles_id, $measurements_id) = explode('-', $pmsr_id);
예제 #2
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';
         //$pda['products_selling_points'] = $pspoint;
         $pda['short_name'] = $pshortname;
         tep_db_perform('jng_sp_catalog', $pda, 'update', "products_id={$pid}");
     }
     $class_pm->updateFlagContentImproved($products_id, $improved_content);
     $class_pm->updateFlagImageImproved($products_id, $improved_image);
     $product = new Product($products_id);
     $price_uvp = $product->getPriceUVP();
     $price_default = $product->getPriceDefault();
     $is_finalized = $pname != '' && $pdesc != '' && $price_uvp > 0 && $price_default > 0;
     if ($is_finalized) {
         $draft->finalizeProduct($products_id, $session_userinfo['username']);
     } else {
         $draft->unfinalizeProduct($products_id);
     }
     echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == "REASSIGNSELLINGPOINTS") {
     $products_id = tep_db_prepare_input($_POST['products_id']);
     $spoint_result = $class_pm->setSellingPointToProducts($products_id, null, true);