parentBox = this.closest('.product_body'), // родительский элемент с классом product_body кнопки "Добавить в корзину"
билдером содержимого- ну вот, совпали оба признака...
/*========== Mobile First ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px){}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px){}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px){}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px){}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px){}
@media only screen and (max-width:1199px){}
@media only screen and (max-width:991px){}
@media only screen and (max-width:767px){}
@media only screen and (max-width:479px){}
$('.slider_box').slick({
infinite: true,
speed: 300,
slidesToShow: 6,
slidesToScroll: 3,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 4,
slidesToScroll: 2,
infinite: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});