$data_for_write ='
{
"type": "FeatureCollection",
"metadata": {
"name": "Карта торгового центра",
"creator": "SWP",
"description": ""
},
'.
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields();
$arProps = $ob->GetProperties();
.'
"features": [{
$data = array('items' =>array(
array(
'description' => $description,
'category_id' => $category_id,
'name' => 'Карта торгового центра',
'offer_id' => $offer_id,
'price' => $price,
'old_price' => $old_price,
$imageId = 1;
$arImage = CFile::ResizeImageGet($imageId, array("width" => 10000, "height" => 520), BX_RESIZE_IMAGE_PROPORTIONAL_ALT, false);
.owl-item>div>div>a{
position: relative;
padding-top: 80%;
display: block;}
.owl-item>div>div>a>img{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
object-fit: cover}
$.ajax({
url: '/bitrix/templates/dveri/ajax/basket.php'
$.get('/bitrix/templates/dveri/ajax/count_basket.php').done(function(data){
$.ajax({
//.............
async: false,
//.............
//.............
$("#send").on("click", async function () {
//.............
await $.ajax({
//.............
await $.get('/bitrix/templates/dveri/ajax/count_basket.php').done(function(data){
//.............
<?
//имея id товара получить id комплекта в котором есть этот товар
Cmodule::IncludeMOdule('catalog');
$rsElem = CCatalogProductSet::getList(
array(),
array('TYPE' => CCatalogProductSet::TYPE_SET, 'ITEM_ID' => $ElementID),
false,
false,
array('SET_ID', 'OWNER_ID', 'ITEM_ID')
);
while ( $set = $rsElem->Fetch() ){
echo $set['OWNER_ID'];
}
?>
<?
//по id комплекта берем id элементов
Cmodule::IncludeMOdule('catalog');
$arSets = CCatalogProductSet::getList(
array(), array( "TYPE" => 1, "OWNER_ID" => $set["OWNER_ID"] ), false, false, array()
);
while( $set2 = $arSets->Fetch() ){
if( $set2["OWNER_ID"]!=$set2["ITEM_ID"] ){
echo $set2["ITEM_ID"];
}
}
?>
RewriteEngine On
RewriteRule ^catalog/perchatki/(.*)$ /catalog/ekipirovka/perchatki/$1 [NC,R=301,L]
#^/catalog/([^/]+)/([^/]+)/# /catalog/detail.php ELEMENT_CODE=$2
#^/catalog/([^/]+)/# /сatalog/section.php SECTION_CODE=$1
#^/catalog/# /сatalog/index.php
$save_to_path = preg_replace("/(.png)|(.jpg)|(.jpeg)/", "", $read_from_path) . ".webp";