miniShop2.Order.add(key, value);
, где key - name поля, а value соответственно значение. $output = '';
$ot=new \mylibs\Otgruzka();
$ot->perevalka_station_code=238207;
$ostatki_arr=$ot->ostatki_na_perevalke_get();
foreach ($ostatki_arr as $v) {
$output .= $modx->getChunk('название_чанка', array(
'product__name' => $v['product_name'],
'product__count' => $v['ostatok_tonnazh']
));
}
return $output;
<input type="hidden" name="options[realprice]" value="[[!getProductRealPrice]]">
SELECT j.result_color
FROM structure_test t
JOIN JSON_TABLE(t.structure,
'$.exodus[*]'
COLUMNS(result_combination varchar(20) PATH '$.result_combination',
result_color varchar(20) PATH '$.result_color',
result VARCHAR(20) PATH '$.result',
result_description VARCHAR(255) PATH '$.result_description')) j
WHERE j.result = 'IT разработка';
$(document).ready(function() {
$('#form').submit(function(e) {
e.preventDefault();
$.ajax({
type: 'POST',
url: 'chat.php',
data: $('#form').serialize() + '&' + this.name + '=' + this.value,
success: function(data) {
console.log(data);
}
});
});
});
{set $items = json_decode($_modx->resource.itemDoctors, true)}
{set $items = json_decode($item.education, true)}
{set $items = json_decode($item.myDoctors, true)}
{set $items1 = json_decode($_modx->resource.itemDoctors, true)}
{foreach $items1 as $item}
{set $items2 = json_decode($item.education, true)}
{foreach $items2 as $item2}
...
{/foreach}
{set $items3 = json_decode($item.myDoctors, true)}
{foreach $items3 as $item3}
...
{/foreach}
{/foreach}
[[+tags:is=`iframe`:then=`
<iframe src="[[+url]]" width="420" height="315" allowfullscreen></iframe>
`:else=`
<video width="420" height="315" controls="controls">
<source src="[[+url]]" type='video/mp4;"'>
</video>
`]]
pagination: {
el: '.swiper-pagination',
dynamicBullets: true, //включаем поддержку динамических буллетов
dynamicMainBullets: 7, //максимальное количество отображаемых буллетов
},