View Single Post
  #1400  
Old 08-29-2019, 06:19 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: X-Cart - reBOOT - Responsive Template

Hi Phil
I want to load a specific category page in list view rather than grid or row using reboot

I can see that running this in console works, but when I place the code on the page it does not execute.

any ideas?

PHP Code:
{if $cat eq 7}
{
literal}
<
script>
$(
document).ready(function(){
    $(
'.products-container .item').removeClass('col-xs-12 col-sm-6 col-md-4 col-lg-4 col-lg-12 grid-view rows-view list-view').addClass('col-lg-12 list-view');
    $(
'button.switcher').removeClass('active');
    $(
'button.switch_layout_list').addClass('active');
    $(
'#products-layout').text('List');
});
</
script>
{/
literal}
{/if} 

the url it would work on
https://www.johnandginger.co.uk/samples.html

additionally i remove the cookie lines
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote