Page 1 of 2

[vQmod] Grid View by Default 1.5.x

Posted: Sun Jul 03, 2011 4:45 am
by uksitebuilder
Simple mod to change the List view to Grid view by default

The following files are changed with this mod:

catalog/view/theme/default/template/product/category.tpl
catalog/view/theme/default/template/product/manufacturer_info.tpl
catalog/view/theme/default/template/product/search.tpl
catalog/view/theme/default/template/product/special.tpl

vQmod xml file:
uksb_grid_view_default.xml

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sun Jul 03, 2011 5:14 am
by Maansy
thanks for the effort :)

Re: [vQmod] Grid View by Default 1.5.x

Posted: Thu Jul 14, 2011 11:16 am
by Mobility
I added the xml file to the /vqmod/xml directory but still not getting the result.

First time installing a vQmod. I am 100% sure VQmod itself is installed.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Thu Jul 14, 2011 11:55 am
by Mobility
Working now. Looks like you have to run the install script again after a mod is added.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Fri Jul 15, 2011 10:22 pm
by eric1998
Hi everyboy
The script nor working for me
I don't understand
anybody have an idea ?

Thanks

[vQmod] Grid View by Default 1.5.x

Posted: Fri Jul 15, 2011 11:41 pm
by uksitebuilder
The mod should run out of the box

If you have other xml files altering the same files, that may be the reason

Always best to clear vqcache folder when adding new mods

Also, in vqmod.php it is a good idea to set useCache to True and Logging to False

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sun Jul 17, 2011 12:45 am
by kmg_123
I have a +20 VQMODS altering the same files no problems at all .. does anyone have a VQMOD for 1.4.9.5 to change it to list view ???

Re: [vQmod] Grid View by Default 1.5.x

Posted: Thu Sep 01, 2011 6:22 am
by ccM
Thanks for the mod Simon - very handy :)

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:11 am
by werepair
didnt work for me either, i am using 1.5.1 , cleared cache and reloaded page , still list grid as default.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:33 am
by uksitebuilder
it is supposed to list grid by default

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:37 am
by werepair
uksitebuilder wrote:it is supposed to list grid by default
hi, sorry i ment to say list.
best regards

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:43 am
by uksitebuilder
I just tested in my 1.5.1.1 and it works fine -> http://www.designs.org.uk

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:49 am
by werepair
uksitebuilder wrote:I just tested in my 1.5.1.1 and it works fine -> http://www.designs.org.uk
hi, thanks for the prompt reply, but it will not work in my site using 1.5.1, i have used other vqmods and they all seem to be working ok, am not saying there is a problem with your coding its probably something i am doing wrong, but i can not get it to work.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 12:53 am
by uksitebuilder
Impossible for me to tell exactly.

I initially made the mod for 1.5.0.5 i think it was

Anyway, your earlier post got alarm bells ringing because I had not tested in 1.5.1.x yet

But as my link above shows, it is working in 1.5.1.1

I have also just done a file compare on the 4 files that it affects for 1.5.0.5 - 1.5.1 - 1.5.1.1

there are no changes in the core code.

--

If running vqmod, are the vqcache files being generated ?

Do you have turned on or can you turn on Logging in vqmod.php to see if an error is generated/indicated in the log file in the vqmod folder.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:04 am
by werepair
uksitebuilder wrote:Impossible for me to tell exactly.

I initially made the mod for 1.5.0.5 i think it was

Anyway, your earlier post got alarm bells ringing because I had not tested in 1.5.1.x yet

But as my link above shows, it is working in 1.5.1.1

I have also just done a file compare on the 4 files that it affects for 1.5.0.5 - 1.5.1 - 1.5.1.1

there are no changes in the core code.

--

If running vqmod, are the vqcache files being generated ?

Do you have turned on or can you turn on Logging in vqmod.php to see if an error is generated/indicated in the log file in the vqmod folder.
Hi thanks for the prompt reply, am new to this vqmod thing but yes the vqcache files are being generated, my vqmod.php states the following

final class VQMod {
private $vqversion = '1.2.3'; // Current version for logging
private $filesToMod = array(); // Keeps a list of all the files that have mods available at construct
private $modsByFile = array(); // Keeps an array of which mods apply to which files to improve performance
private $doNotMod = array(); // Keeps an array of which files should never be modded
private $fileCache = array(); // Keeps a relationship from real file to temp file to avoid reloading same class
private $cwd = ''; // default working directory of this script
private $virtualMode = TRUE; // If you want to modify the actual source files, set to FALSE. NOT RECOMMENDED!!!
private $init = TRUE; // Triggers the log to reset
private $logFilePath = './vqmod'; // Log file path. default: './vqmod/logs'
private $logFileName = 'vqmod.log'; // Log file name. default: 'vqmod.log'

public $useCache = FALSE; // Whether or not to use previously cached versions of the source files
public $vqCachePath = './vqmod/vqcache'; // The vqmod cache path
public $protectedFilelist = './vqmod/vqprotect.txt';// Protected Files list path. default: './vqmod/vqprotect.txt'
public $logging = TRUE; // enable/disable logging

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:07 am
by uksitebuilder
Logging is already on, i would suggest you eventually set it to FALSE and certainly change useCache to TRUE as this is known to cause problems in some situations.

Basically as you have it, the cache files are recreated at each page load.

--

So, do you have a log file in your vqmod folder ?

After changing the useCache to TRUE, try it again and let me know if it is not working.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:12 am
by werepair
uksitebuilder wrote:Logging is already on, i would suggest you eventually set it to FALSE and certainly change useCache to TRUE as this is known to cause problems in some situations.

Basically as you have it, the cache files are recreated at each page load.

--

So, do you have a log file in your vqmod folder ?

After changing the useCache to TRUE, try it again and let me know if it is not working.
hi, i have no log file in the vqmod folder.

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:17 am
by werepair
Hi , Unfortunately still not working after changing to TRUE

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:19 am
by uksitebuilder
That's very weird.

Even if you have no errors, you should get a log file if logging is set to TRUE.

Have you cleared cookies before testing again ?

I'm kinda running out of answers after this, sorry

Re: [vQmod] Grid View by Default 1.5.x

Posted: Sat Sep 03, 2011 1:40 am
by werepair
hi, i now have a log file

regards