1С-Битрикс
4
Вклад в тег
\Bitrix\Main\EventManager::getInstance()->RegisterEventHandler(
'tasks',
'OnBeforeTaskUpdate',
$this->MODULE_ID,
'\MyCompany\Handlers\CTask',
'OnBeforeTaskUpdate',
"1"
);
ErrorDocument 404 /404.php
<?php
include_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/urlrewrite.php');
CHTTP::SetStatus("404 Not Found");
@define("ERROR_404","Y");
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
use Bitrix\Main\Localization\Loc;
$APPLICATION->SetTitle("Страница не найдена");
if ( '' === $product->get_price() || 0 == $product->get_price() )
if (!$product->get_price())
product_price_free_zero_emptyотпадает.
if (!$product->get_price()){
echo '<span class="woocommerce-Price-amount amount">By request</span>';
}
if (!$product->get_price()){
echo '<input type="button" value="Кнопка" /> ';
}