當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CCatalog::GetSkuInfoByProductID方法代碼示例

本文整理匯總了PHP中CCatalog::GetSkuInfoByProductID方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCatalog::GetSkuInfoByProductID方法的具體用法?PHP CCatalog::GetSkuInfoByProductID怎麽用?PHP CCatalog::GetSkuInfoByProductID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CCatalog的用法示例。


在下文中一共展示了CCatalog::GetSkuInfoByProductID方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: executeComponent

 public function executeComponent()
 {
     $this->IBLOCK_ID = $this->arParams["IBLOCK_ID"];
     $this->SECTION_ID = $this->arParams["SECTION_ID"];
     $this->FILTER_NAME = $this->arParams["FILTER_NAME"];
     if (CModule::IncludeModule("catalog")) {
         $arCatalog = CCatalog::GetSkuInfoByProductID($this->IBLOCK_ID);
         if (is_array($arCatalog)) {
             $this->SKU_IBLOCK_ID = $arCatalog["IBLOCK_ID"];
             $this->SKU_PROPERTY_ID = $arCatalog["SKU_PROPERTY_ID"];
         }
     }
     /*DEMO CODE for "pure" class.php component
     		$this->arResult["FFF"] = "ggg";
     		$this->includeComponentTemplate();
     		return $this->ELEMENT_ID;
     		*/
     return parent::executeComponent();
 }
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:19,代碼來源:class.php

示例2: GetMessage

					var display = 'table-row';
					for(var i = 1; i < cnt-1; i++)
					{
						if(tbl.rows[i].style.display != 'none')
							display = 'none';
					}
					tr.style.display = display;
				}
			}
			</script>
		</td></tr>
		<?
		$arCatalog = false;
		if (CModule::IncludeModule("catalog"))
			$arCatalog = CCatalog::GetSkuInfoByProductID($IBLOCK_ID);

		if (is_array($arCatalog))
		{
			$arPropLinks = CIBlockSectionPropertyLink::GetArray($arCatalog["IBLOCK_ID"], 0);
		?>
		<tr colspan="2" class="heading">
			<td align="center"><?echo GetMessage("CAT_CEDIT_PROP_SKU_SECTION");?></td>
		</tr>
		<tr colspan="2"><td align="center">
			<table class="internal" id="table_SKU_SECTION_PROPERTY">
			<tr class="heading">
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_NAME");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_TYPE");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_SMART_FILTER");?></td>
				<td><?echo GetMessage("CAT_CEDIT_PROP_TABLE_ACTION");?></td></tr>
開發者ID:ASDAFF,項目名稱:entask.ru,代碼行數:30,代碼來源:cat_catalog_edit.php

示例3: ob_get_contents

             $obExport->EndExportCatalog();
             $obExport->EndExport();
             $c = ob_get_contents();
             ob_end_clean();
             echo GetMessage("CC_BCE1_PROGRESS_PRODUCT", array("#TOTAL#" => $_SESSION["BX_CML2_EXPORT"]["total"], "#COUNT#" => $_SESSION["BX_CML2_EXPORT"]["current"]));
             echo $c;
             $_SESSION["BX_CML2_EXPORT"]["next_step"] = $obExport->next_step;
         } else {
             ob_end_clean();
             $_SESSION["BX_CML2_EXPORT"] = array("zip" => $arParams["USE_ZIP"] && function_exists("zip_open"), "step" => 3, "next_step" => array(), "SECTION_MAP" => array(), "PROPERTY_MAP" => false, "PRICES_MAP" => false);
         }
     }
 }
 $arCatalog = false;
 if ($_SESSION["BX_CML2_EXPORT"]["step"] === 3) {
     $arCatalog = CCatalog::GetSkuInfoByProductID($arParams["IBLOCK_ID"]);
 }
 $obExport = new CIBlockCMLExport();
 if ($_SESSION["BX_CML2_EXPORT"]["step"] === 3 && $obExport->Init($fp, is_array($arCatalog) ? $arCatalog["IBLOCK_ID"] : $arParams["IBLOCK_ID"], $_SESSION["BX_CML2_EXPORT"]["next_step"], false, $work_dir = false, $file_dir = false, $bCheckPermissions = false, is_array($arCatalog) ? $arCatalog["PRODUCT_IBLOCK_ID"] : false)) {
     if (!array_key_exists("total", $_SESSION["BX_CML2_EXPORT"])) {
         $_SESSION["BX_CML2_EXPORT"]["total"] = CIBlockElement::GetList(array(), array("IBLOCK_ID" => is_array($arCatalog) ? $arCatalog["IBLOCK_ID"] : $arParams["IBLOCK_ID"], "ACTIVE" => "Y"), array());
         $_SESSION["BX_CML2_EXPORT"]["current"] = 0;
     }
     ob_start();
     $obExport->StartExport();
     ob_start();
     $obExport->StartExportMetadata();
     $obExport->ExportProperties($_SESSION["BX_CML2_EXPORT"]["PROPERTY_MAP"]);
     $obExport->ExportSections($_SESSION["BX_CML2_EXPORT"]["SECTION_MAP"], 0, 0);
     $obExport->EndExportMetadata();
     ob_end_clean();
開發者ID:webgksupport,項目名稱:alpina,代碼行數:31,代碼來源:component.php

示例4: GetOffersIBlock

 function GetOffersIBlock($IBLOCK_ID)
 {
     $arResult = false;
     $IBLOCK_ID = intval($IBLOCK_ID);
     if (0 < $IBLOCK_ID) {
         if (CModule::IncludeModule("catalog")) {
             $arCatalog = CCatalog::GetSkuInfoByProductID($IBLOCK_ID);
             if (true == is_array($arCatalog)) {
                 $arResult = array('OFFERS_IBLOCK_ID' => $arCatalog['IBLOCK_ID'], 'OFFERS_PROPERTY_ID' => $arCatalog['SKU_PROPERTY_ID']);
             }
         }
     }
     return $arResult;
 }
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:14,代碼來源:comp_pricetools.php


注:本文中的CCatalog::GetSkuInfoByProductID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。