[vQmod] Grid View By Default
61 posts
• Page 1 of 4 • 1, 2, 3, 4
[vQmod] Grid View By Default
Want your products shown in categories displayed in grid view by default.
This mod will take care of that.
Tested on 1.5.x
This mod will take care of that.
Tested on 1.5.x
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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 5:07 pm
Re: [vQmod] Grid View By Default
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.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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?
Possible reasons?
- hellogoodbye
- Posts: 50
- Joined: Tue May 03, 2011 10:33 pm
Re: [vQmod] Grid View By Default
Hi, I changed the code in files, clear cookies and get this error in Firebug:
I'm using OC 1.5.1.1 and custom theme based on default, any help?
$.cookie is not a function
view = $.cookie('display');
I'm using OC 1.5.1.1 and custom theme based on default, any help?
-

reynierpm - Posts: 323
- Joined: Tue Jan 12, 2010 1:51 pm
Re: [vQmod] Grid View By Default
Looks like custom theme has been edited and breaks the cookie code
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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 10:33 pm
Re: [vQmod] Grid View By Default
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 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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
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.
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.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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.
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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
could be a cookie issue - have you tried clearing your cookies ?
what is your link, let me see if I can replicate your problem.
what is your link, let me see if I can replicate your problem.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
Please do:
http://www.importpieseauto.ro
http://www.importpieseauto.ro
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
the following file is missing from your server:
catalog/view/javascript/jquery/ui/external/jquery.cookie.js
catalog/view/javascript/jquery/ui/external/jquery.cookie.js
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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?
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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
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.
If you ask me mod_security = epic fail, but I digress.
Try changing the header.tpl to point to the newly renamed file.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
it still has the following in your header.tpl
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [vQmod] Grid View By Default
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?
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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
Re: [vQmod] Grid View By Default
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.
-

florinsith - Posts: 2745
- Joined: Thu May 13, 2010 6:36 pm
Re: [vQmod] Grid View By Default
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'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
-

Lao - Posts: 219
- Joined: Tue Nov 23, 2010 7:31 am
- Location: Craiova, Romania
61 posts
• Page 1 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 2 guests














