Jump to content

Force initial catalog view


Rich

Recommended Posts

I want any new viewer of the store to see the compressed (name & picture only) form of a product list, and only see the description of a product if they click on a product or change to the expanded view.

How do I set that up?

Link to comment
Share on other sites

There are four edits to make to have the initial view switched from list to grid:

In the template content.category.php, near line 60-61:
From:
         <dd><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd>
         <dd class="active"><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd>

To:
         <dd class="active"><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd>
         <dd><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd>

Near line 67:
From:
   <ul class="small-block-grid-1 product_list" data-equalizer>

To:
   <ul class="small-block-grid-1 medium-block-grid-3 product_list" data-equalizer>

Near line 71:
From:
            <div class="row product_list_view">

To:
            <div class="row product_list_view hide">     

Near line 131:
From:
            <div class="product_grid_view hide">

To:
            <div class="product_grid_view">

Have CubeCart clear its internal cache.

Also, there may be a cookie ('product_view') to tell CubeCart what view to use. You will need to delete that cookie so that CubeCart will use the initial classes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...