<input type="hidden" name="product_href" class="onecl" value="<?php echo $product['href']; ?>" />
не забудьте name для поля и обработчик такой примерно
$prod= $_POST["product_href"];
<input type="hidden" value="<?php
$item-link?>" class="button">
$(window).load(function(){
var selectedCategory;
var $grid = $('.featured').isotope({
itemSelector: '.col-md-3',
masonry: {
columnWidth: '.col-md-3',
},
getSortData: {
selectedCategory: function( itemElem ) {
return $( itemElem ).hasClass( selectedCategory ) ? 0 : 1;
}
}
});
var $items = $('.featured').find('.featured-items');
$('.sort-button-group').on( 'click', '.button', function() {
selectedCategory = $( this ).attr('data-category');
if ( selectedCategory == 'all' ) {
$grid.isotope({
sortBy: 'original-order'
});
$items.css({
display:block
});
return;
}
var selectedClass = '.' + selectedCategory;
$items.filter( selectedClass ).css({
display:block
});
$items.not( selectedClass ).css({
display:none
});
$grid.isotope('updateSortData');
$grid.isotope({ sortBy: 'selectedCategory' });
});
$('.button-group').each( function( i, buttonGroup ) {
var $buttonGroup = $( buttonGroup );
$buttonGroup.on( 'click', 'li', function() {
$buttonGroup.find('.active').removeClass('active');
$( this ).addClass('active');
});
});
});
(function($){
$('.featured').isotope({
itemSelector: '.featured-items',
layoutMode: 'masonry'
});
})(jQuery);