本文整理汇总了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();
}
示例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>
示例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();
示例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;
}