slidesPerView: 3.5 // Показать три с половиной слайда, как на примере 1
slidesPerView:1.5,
centeredSlides: true, //в связке с slidesPerView: 1.5 встанет как на примере 2
use Bitrix\Sale;
$basket = Sale\Order::load($orderId)->getBasket(); // получили корзину по $orderId
$basketItems = $basket->getBasketItems(); // получили товары корзины
foreach ($basketItems as $basketItem) {
$basketPropertyCollection = $item->getPropertyCollection(); // вот и свойства товара
foreach ($basketPropertyCollection as $propertyItem) {
if ($propertyItem->getField('CODE') == 'ARTICLE') {
var_dump($propertyItem->getValue());
}
}
}
var playlist=["0Bmhjf0rKe8","jQZtk-fCWQ4","5wosC9QLQTM"];
var whonext=0;
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
height: '390',
width: '640',
videoId: playlist[0],
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
whonext++;
}
function playNext(){
if(whonext>playlist.length-1){whonext=0}
player.loadVideoById({'videoId': playlist[whonext]});
whonext++;
}
function onPlayerReady(event) {
event.target.playVideo();
}
function onPlayerStateChange(event) {
if(event.data === 0) {
playNext();
}
}
position: sticky;
<?
$PERM["sect_contacts.php"]["6"]="R";
$PERM["sect_map.php"]["6"]="R";
?>