本文整理汇总了PHP中products_minierp::setSellingPointToProducts方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::setSellingPointToProducts方法的具体用法?PHP products_minierp::setSellingPointToProducts怎么用?PHP products_minierp::setSellingPointToProducts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::setSellingPointToProducts方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Product
$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);
$product = $class_pm->retrieveDetail($products_id, 'pd');
$product_selling_points = explode(';', $product['pd']['2']['products_selling_points']);
$product_selling_points_amde = explode(';', $product['pd']['2']['products_selling_points_amde']);
$result = drawSellingPointsData($product_selling_points, $product_selling_points_amde);
echo utf8_encode($result);
exit;
}
}
$class_pm->drawAttributesPostAction();
$products_id = isset($_GET['id']) && $_GET['id'] != '' ? tep_db_prepare_input($_GET['id']) : null;
if (is_null($products_id)) {
exit;
}
$draft = new design_draft(null, $products_id);
$product = $class_pm->retrieveDetail($products_id, 'p,pd,pd2,pnc,cat,pci,pei');
示例2: IFNULL
}
} else {
//////////////////////////
// START UPLOAD PROCESS //
//////////////////////////
$logger->write('All Products are valid, preparing XML file');
//BUNDLE SUPPORT IS ALREADY REMOVED
//DO NOT CHANGE BELOW VALUE
$bundle_exist = false;
//FILL SELLING POINTS FOR SOME PRODUCTS WHICH NOT YET SET
$dbq_spoint = tep_db_query("SELECT products_id" . " FROM jng_sp_catalog" . " WHERE active_status = 1 AND jng_sp_id = 2" . " AND IFNULL(products_selling_points, '') = ''");
$pids_spoint_set = array();
while ($r_spoint = tep_db_fetch_array($dbq_spoint)) {
$pids_spoint_set[] = $r_spoint['products_id'];
}
$class_pm->setSellingPointToProducts($pids_spoint_set);
//GRAB ALREADY REPORTED EAN
$deleted_eans_reported = retrieveOTDEremovedEANList();
$create_image_zip = false;
$trigger_jms_manually = false;
$deleted_eans = array();
$temp_images = array();
if ($create_image_zip) {
$zip_filename = $sp_detail['jng_id'] . 'media-' . date('YmdHis') . '.zip';
$zip_file = SP_OTTODE_TEMP_FOLDER . $zip_filename;
$zip_final = SP_OTTODE_UPLOAD_PATH . $zip_filename;
if (file_exists($zip_file)) {
unlink($zip_file);
}
if (file_exists($zip_final)) {
unlink($zip_final);
示例3: IN
}
$reset = !isset($_GET['applyto']) ? false : true;
$n_s_point_added = 0;
if (isset($pids) && $pids != '') {
$dbq = tep_db_query("SELECT * FROM products WHERE products_id IN ({$pids})");
} else {
//$dbq = tep_db_query("SELECT * FROM products"); //APPLY TO ALL PRODUCTS
//$dbq = tep_db_query("SELECT p.* FROM products p INNER JOIN products_description pd ON pd.products_id = p.products_id AND pd.language_id = 2 WHERE p.products_status = 1 AND (pd.products_selling_points IS NULL OR pd.products_selling_points='') ORDER BY products_id"); //APPLY TO ALL ACTIVE PRODUCTS THAT HAVE NO SELLING POINTS YET
//$dbq = tep_db_query("SELECT * FROM products WHERE active_status = 1 ORDER BY products_id DESC"); //APPLY TO ALL ACTIVE PRODUCTS
//$dbq = tep_db_query("SELECT * FROM products WHERE products_id = 53976"); //APPLY TO CERTAIN PRODUCTS
//$dbq = tep_db_query("SELECT * FROM products WHERE products_id <= $last_pid_updated AND products_status = 1"); //APPLY TO PRODUCTS UNTIL UPPER BOUND
//$dbq = tep_db_query("SELECT * FROM products WHERE products_status = 1 ORDER BY RAND() LIMIT 20"); //APPLY TO 20 RANDOM PRODUCTS
$dbq = tep_db_query("SELECT * FROM products WHERE products_id IN (59926,66859,73533,74020,74688) ORDER BY products_id ");
}
while ($r = tep_db_fetch_array($dbq)) {
$pid = $r['products_id'];
$spm = $class_pm->setSellingPointToProducts($pid, $apply_to, $reset);
echo "<div style=\"font-size:14px;\">Products {$pid} added with \n <ol>";
if (isset($spm[$pid]['products_selling_points'])) {
echo "<li>OT.DE » <strong>" . $spm[$pid]['products_selling_points'] . "</strong></li>";
}
if (isset($spm[$pid]['products_selling_points_amde'])) {
echo "<li>AM.DE » <strong>" . $spm[$pid]['products_selling_points_amde'] . "</strong></li>";
}
if (isset($spm[$pid]['products_selling_points_laid'])) {
echo "<li>LA.ID » <strong>" . $spm[$pid]['products_selling_points_laid'] . "</strong></li>";
}
echo "</ol>\n </div>";
$n_s_point_added++;
}
echo "<br/><h2>{$n_s_point_added} Products are added with selling points</h2>";