Skip to content

Instantly share code, notes, and snippets.

@katyayu
Created Jan 15, 2018
Embed
What would you like to do?
{% javascript %}
jQuery(document).ready(function($) {
// PRODUCTS VIEW GRID/LIST
if ( typeof $.cookie('productSortView') == 'undefined' ) {
$.cookie('productSortView', 'list', {path: '/'});
}
else if ( $.cookie('productSortView') == 'grid' ) {
$('#view_list').removeClass('active');
$('#view_grid').addClass('active');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment