Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Change default category view from thumbs to list?

Change default category view from thumbs to list? 9 years 7 months ago #4218

Hi

like in topic

In default there is thumbs in category view and the you can switch view to list.
1. it is possible to change default category view from thumbs to list view?

2. how to change image zoom style in product details display?
The administrator has disabled public write access.

Change default category view from thumbs to list? 9 years 7 months ago #4225

1. change the code as below

templates/your_template/html/com_virtuemart/category/default.php ~ line 163

reverse the jquery logic
 
 
       jQuery(document).ready(function(){         
           			jQuery("a.switch_thumb").toggle(function(){
			  jQuery(this).removeClass("swap"); 
			  jQuery("div.FWThumbBrowseV1").fadeOut("fast"); 
			  jQuery("div.FWListBrowseV1").fadeIn("fast");
			  }, function () {
			  jQuery(this).addClass("swap");
			   jQuery("div.FWListBrowseV1").fadeOut("fast"); 
			  jQuery("div.FWThumbBrowseV1").fadeIn("fast");
			});
 
        });
 
 

to
 
jQuery(document).ready(function(){         
           			jQuery("a.switch_thumb").toggle(function(){
			  jQuery(this).removeClass("swap"); 
			  jQuery("div.FWListBrowseV1").fadeOut("fast"); 
			  jQuery("div.FWThumbBrowseV1").fadeIn("fast");
			  }, function () {
			  jQuery(this).addClass("swap");
			   jQuery("div.FWThumbBrowseV1").fadeOut("fast"); 
			  jQuery("div.FWListBrowseV1").fadeIn("fast");
			});
 
        });
 
 

and then swap the display none and block

lines 211 & 484
<!-- <div class="FWListBrowseV1" style="display:none;">-->
<div class="FWListBrowseV1" style="display:block;" >
 

and
<!--<div class="FWThumbBrowseV1" style="display:block;" >-->
<div class="FWThumbBrowseV1" style="display:none;" >
 

if your using the flex template the code is nearly identical

2. No idea what you want?

Cheers
The administrator has disabled public write access.
Time to create page: 0.048 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo