Answer the question
In order to leave comments, you need to log in
Magnific popup, how to correctly load data via ajax?
There is such a layout:
<a title="Name" class="thumbnail" href="/component/xxx?id=89">
<img src="/images/file_5_9_485.jpg?0" alt="ALtName">
<div class="caption">
<h2 class="product-name">Name</h2>
<div class="price-block">
<p>Цена: <span class="price">10 р</span></p>
</div>
<div class="actions">
<button type="button" title="Добавить в корзину" class="btn to_cart">Купить</button>
<button type="button" title="Быстрый просмотр" data-href="/component/xxx?id=89" class=" quick-view">Быстрый просмотр</button>
</div>
</div>
</a>
... и т.д.
$('.thumbnail').magnificPopup({
preloader: true,
type: 'ajax',
overflowY: 'scroll',
gallery:{
enabled:true
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question