Community Forums

[vQmod] Grid View By Default

Put any free vQmod scripts here.
vQmod details

[vQmod] Grid View By Default

Postby uksitebuilder » Tue Aug 09, 2011 11:20 am

Want your products shown in categories displayed in grid view by default.

This mod will take care of that.

Tested on 1.5.x

uksb_grid_view_default.xml
(2.46 KiB) Downloaded 4566 times
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby jcooke » Tue Aug 09, 2011 2:16 pm

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?
jcooke
 
Posts: 21
Joined: Tue May 31, 2011 12:07 pm

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Tue Aug 09, 2011 2:32 pm

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 -> 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.
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby hellogoodbye » Sun Aug 14, 2011 5:53 pm

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?
hellogoodbye
 
Posts: 50
Joined: Tue May 03, 2011 5:33 pm

Re: [vQmod] Grid View By Default

Postby reynierpm » Sun Aug 14, 2011 8:03 pm

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?
User avatar
reynierpm
 
Posts: 323
Joined: Tue Jan 12, 2010 8:51 am

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Mon Aug 15, 2011 3:35 am

Looks like custom theme has been edited and breaks the cookie code
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby hellogoodbye » Fri Aug 19, 2011 9:19 pm

Silly me. I forgot to change the path to my custom template. Got it to work. Thanks for this!
hellogoodbye
 
Posts: 50
Joined: Tue May 03, 2011 5:33 pm

Re: [vQmod] Grid View By Default

Postby Lao » Thu Sep 22, 2011 8:04 am

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.
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Thu Sep 22, 2011 8:12 am

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.
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby Lao » Thu Sep 22, 2011 8:26 am

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.
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Thu Sep 22, 2011 8:51 am

could be a cookie issue - have you tried clearing your cookies ?

what is your link, let me see if I can replicate your problem.
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby Lao » Thu Sep 22, 2011 9:06 am

I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Thu Sep 22, 2011 9:32 am

the following file is missing from your server:
catalog/view/javascript/jquery/ui/external/jquery.cookie.js
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby Lao » Thu Sep 22, 2011 3:10 pm

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?
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Thu Sep 22, 2011 3:17 pm

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.
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby Lao » Thu Sep 22, 2011 3:36 pm

Did that already. Nothing changed. I guess I'll have to live with list view. :(
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby uksitebuilder » Thu Sep 22, 2011 3:40 pm

it still has the following in your header.tpl

<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
User avatar
uksitebuilder
 
Posts: 5614
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: [vQmod] Grid View By Default

Postby Lao » Fri Sep 23, 2011 6:47 am

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?
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Re: [vQmod] Grid View By Default

Postby florinsith » Fri Sep 23, 2011 7:01 am

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.
User avatar
florinsith
 
Posts: 3725
Joined: Thu May 13, 2010 1:36 pm

Re: [vQmod] Grid View By Default

Postby Lao » Fri Sep 23, 2011 9:09 am

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.
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
User avatar
Lao
 
Posts: 224
Joined: Tue Nov 23, 2010 2:31 am
Location: Craiova, Romania

Next

Return to vQmods

Who is online

Users browsing this forum: No registered users and 15 guests

Hosted by Arvixe Web Hosting