Jump to content

Force initial catalog view


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...