当前位置: 首页>>代码示例>>PHP>>正文


PHP products_minierp::updateFlagImageImproved方法代码示例

本文整理汇总了PHP中products_minierp::updateFlagImageImproved方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::updateFlagImageImproved方法的具体用法?PHP products_minierp::updateFlagImageImproved怎么用?PHP products_minierp::updateFlagImageImproved使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在products_minierp的用法示例。


在下文中一共展示了products_minierp::updateFlagImageImproved方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setTradebyteNeedReupload

     //Update TB Status if needed
     if ($update_tb_status) {
         $q = "SELECT tb_status FROM products WHERE products_id='{$pid}'";
         $r = tep_db_query($q);
         $row = tep_db_fetch_array($r);
         if ($row['tb_status'] == '0') {
             //Set for first upload
             $class_pm->setTBStatus($pid, 2);
         } else {
             //Set for need reupload
             setTradebyteNeedReupload($pid);
         }
     }
 } elseif ($_POST['me_action'] == 'UPDATEFLAGIMAGEIMPROVED') {
     $status = tep_db_prepare_input($_POST['status']);
     $class_pm->updateFlagImageImproved($pid, $status);
     echo 'OK';
     exit;
 } elseif ($_POST['me_action'] == 'MAKESHAREABLE') {
     tep_db_query("UPDATE products_configurator SET visible_status='A', allow_modification='1' WHERE products_id={$pid}");
     $messagebox->add("This Product is now shareable.", 'green');
 } elseif ($_POST['me_action'] == 'MAKENOTSHAREABLE') {
     tep_db_query("UPDATE products_configurator SET visible_status='N', allow_modification='0' WHERE products_id={$pid}");
     $messagebox->add("This Product is set to not shareable.", 'green');
 } elseif ($_POST['me_action'] == 'SETFINISH') {
     tep_db_query("UPDATE products_configurator SET is_finish='1' WHERE products_id={$pid}");
     $product = $class_pm->retrieveDetail($pid, 'p');
     if ($product['p']['products_model'] == '') {
         $promod = $class_pm->generateNewCode($product['categories_id']);
         tep_db_query("UPDATE products SET products_model='{$promod}' WHERE products_id={$pid}");
     }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:product-detail.php

示例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);
     $product = $class_pm->retrieveDetail($products_id, 'pd');
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-finalize.php


注:本文中的products_minierp::updateFlagImageImproved方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。