本文整理汇总了PHP中products_minierp::updateFlagContentImproved方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::updateFlagContentImproved方法的具体用法?PHP products_minierp::updateFlagContentImproved怎么用?PHP products_minierp::updateFlagContentImproved使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::updateFlagContentImproved方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$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: array
}
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);