本文整理汇总了PHP中products_minierp::setProductDescription2方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::setProductDescription2方法的具体用法?PHP products_minierp::setProductDescription2怎么用?PHP products_minierp::setProductDescription2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::setProductDescription2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: IN
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of temp-updates-desc2-clasp
*
* @author IT TEAM BONOFACTUM
* @created Apr 16, 2014 5:51:39 PM
*/
global $db;
require_once '../confy.php';
require_once '../functions.php';
require_once '../functions-2.php';
tep_db_connect();
use_class('products_minierp');
$class_pm = new products_minierp();
$query = 'SELECT DISTINCT p.products_id FROM products p';
$query .= ' INNER JOIN products_to_categories ptc ON ptc.products_id = p.products_id';
$query .= ' INNER JOIN products_description2 pd2 ON pd2.products_id = p.products_id';
$query .= ' INNER JOIN products_use_elements pue ON pue.products_id = p.products_id';
$query .= ' WHERE pd2.clasp_type = "0" AND ptc.categories_id = "2" AND p.active_status = "1" AND pue.elements_id IN (2615,4365,5597,650,675,3183,5559,1149,7101,1239,1240,652,653,732,1146)';
$result = tep_db_query($query);
if (tep_db_num_rows($result) > 0) {
while ($row = tep_db_fetch_array($result)) {
$class_pm->setProductDescription2($row['products_id'], 'c');
echo "{$row['products_id']} OK <br>";
}
echo "DONE";
}