By default opencart products displayed list, but some of the templates you want to display a grid is, for this there are several options for how to do this and we will look at some of them today.
Option One:
To make the default view of "showcase", it is necessary instead of "list" write "of grid"
So get started, go to the FTP directory of your theme:
1 |
catalog/view/theme/default/template/product/category.tpl, |
And open the notepad file category.tpl (PS: It is recommended to Use notepad + when editing files)
At the very end of the file, find the code:
1 2 3 4 5 6 7 8 9 |
view = $.cookie('display'); if (view) { display(view); } else { display('list'); } //--></script> <?php echo $footer; ?> |
and for me there is one word to you are:
1 2 3 4 5 |
if (view) { display(view); } else { display('[b]grid[/b]'); } |
Option two:
Opens the same category.tpl file:
1 |
catalog/view/theme/default/template/product/category.tpl, |
and at the top front of the entire code add the following:
1 2 3 |
<?php setcookie('display', "grid", time()+604800, '/'); ?> |
All the same will need to be done and the file search, promotions, brands, etc ... If you want to, and they also had a net default.
And the third option:
That is, if you have installed the download VQMod addition to the example
That's all! I would be glad if someone helped this article.
No Comment
You can post first response comment.