Page 1 of 4

[vQmod] Grid View By Default

Posted: Wed Aug 10, 2011 12:20 am
by uksitebuilder
Want your products shown in categories displayed in grid view by default.

This mod will take care of that.

Tested on 1.5.x

Re: [vQmod] Grid View By Default

Posted: Wed Aug 10, 2011 3:16 am
by jcooke
I came across this and it is what i was looking for. How do i install it and how any categories can I show? Also, how do I install it with the hide categories mod? I want my home page to show categories not latest items, will this do it?

Re: [vQmod] Grid View By Default

Posted: Wed Aug 10, 2011 3:32 am
by uksitebuilder
jcooke wrote:I came across this and it is what i was looking for. How do i install it and how many categories can I show? Also, how do I install it with the hide categories mod?
This is for displaying products in a category in Grid View by Default as opposed to List View by Default

All the [vQmod] in this forum are installed by simply dropping an xml file in to a folder on your server.

You must have the vQmod extension installed on your server to use these vQmod files.

vQmod gives you an easy way to modify files without editing the core files and therefore enabling easy updates in OpenCart versions in the future.

Please see this topic on how to install vQmod first -> http://forum.opencart.com/viewtopic.php?f=23&t=24529

--

With regards to:
jcooke wrote: I want my home page to show categories not latest items, will this do it?
No neither this mod nor the 'hide empty categories' mod will display categories on your homepage instead of latest products.

Re: [vQmod] Grid View By Default

Posted: Mon Aug 15, 2011 6:53 am
by hellogoodbye
Not sure why but its not working for me. I didn't see anything in the vqmod.log I'm using 1.5.1.1
Possible reasons?

Re: [vQmod] Grid View By Default

Posted: Mon Aug 15, 2011 9:03 am
by reynierpm
Hi, I changed the code in files, clear cookies and get this error in Firebug:
$.cookie is not a function
view = $.cookie('display');
I'm using OC 1.5.1.1 and custom theme based on default, any help?

Re: [vQmod] Grid View By Default

Posted: Mon Aug 15, 2011 4:35 pm
by uksitebuilder
Looks like custom theme has been edited and breaks the cookie code

Re: [vQmod] Grid View By Default

Posted: Sat Aug 20, 2011 10:19 am
by hellogoodbye
Silly me. I forgot to change the path to my custom template. Got it to work. Thanks for this!

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 9:04 pm
by Lao
What paths do we have to change for a custom theme?

I only have category.tpl and special.tpl in my product folder of custom theme.

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 9:12 pm
by uksitebuilder
Lao, if your theme doesn't have the template files mentioned in the vqmod file, then leave those as default.

If your theme does have the template (.tpl) files mentioned in the vqmod file, the edit the vqmod file and change the path to suit your template.

OC uses a fallback system for template files, so if your template doesn't have a certain file, the default is used instead.

The only other thing to check is that if your template file does exist, is the vqod search going to find the code or has that been changed.

If the latter, then more work needs to be done.

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 9:26 pm
by Lao
Strange thing is that this worked ok until a few days ago, when I saw that it doesn't work anymore. I tried your solution with no success. :( It still shows products as list.

I was trying to think if I used some other mod and no results came in my mind.

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 9:51 pm
by uksitebuilder
could be a cookie issue - have you tried clearing your cookies ?

what is your link, let me see if I can replicate your problem.

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 10:06 pm
by Lao

Re: [vQmod] Grid View By Default

Posted: Thu Sep 22, 2011 10:32 pm
by uksitebuilder
the following file is missing from your server:
catalog/view/javascript/jquery/ui/external/jquery.cookie.js

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 4:10 am
by Lao
I renamed it after I got some news from the hosting company saying I was under some sort of attack. I found the solution right here on the forums.

Is there any other place I should point to it renamed?

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 4:17 am
by uksitebuilder
Looks like your host is using apache's mod_security which has some b/s rule about the name of files containing the word 'cookie'

If you ask me mod_security = epic fail, but I digress.

Try changing the header.tpl to point to the newly renamed file.

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 4:36 am
by Lao
Did that already. Nothing changed. I guess I'll have to live with list view. :(

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 4:40 am
by uksitebuilder
it still has the following in your header.tpl

<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 7:47 pm
by Lao
I see it in the page source, but I checked it right now and the modification is done. In both default and custom theme, just to be sure.

Is there any other place where this file is mentioned, besides header.tpl?

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 8:01 pm
by inactiveaccount9912
Checked it right now and it seemd you didnt change the name of the file in the octheme2 header. Email or call me now and we'll sort it out.

Re: [vQmod] Grid View By Default

Posted: Fri Sep 23, 2011 10:09 pm
by Lao
Florin managed to help me with the grid view. I gave up on the option to have list view. I want only grid.

I'll see tonight how I will solve the cookie.js renaming. It seems it finds it somewhere else. I'll get back with the results.