Post by rfary » Mon Jul 04, 2011 5:46 am

uksitebuilder wrote:make sure you have cleared your cookies
using fire fox and ie both cleared cookie still the same.not working for me. must be something dumb that i'm not getting right. i'm still using vqmod to test currently.

Newbie

Posts

Joined
Sun Jul 03, 2011 7:39 am

Post by uksitebuilder » Mon Jul 04, 2011 3:00 pm

Is the following file being created in your vqmod/vqcache folder

vq-catalog_view_theme_default_template_product_category.tpl

if it is, please attach it to a reply to this post

--

In addition, edit your vqmod/vqmod.php

Make sure:

public $useCache = TRUE;
public $logging = FALSE;

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by rfary » Tue Jul 05, 2011 9:28 pm

uksitebuilder wrote:Is the following file being created in your vqmod/vqcache folder

vq-catalog_view_theme_default_template_product_category.tpl

if it is, please attach it to a reply to this post

--

In addition, edit your vqmod/vqmod.php

Make sure:

public $useCache = TRUE;
public $logging = FALSE;
hi attached is the file and the vqmod.php changed still will not work.
thanks for your help.

Attachments


Newbie

Posts

Joined
Sun Jul 03, 2011 7:39 am

Post by uksitebuilder » Tue Jul 05, 2011 9:34 pm

Can we have a URL for your site please?

PM me if you dont want to publicise.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Tue Jul 05, 2011 9:36 pm

p.s. Your cached vqmod file is perfect.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by jeroendolstra » Thu Aug 04, 2011 5:55 am

chokoret wrote:Find

Code: Select all

  <div class="product-list"> 
from category.tpl
and change it to

Code: Select all

  <div class="product-grid">
thanks! works perfectly

http://www.elastiekeveter.nl


Newbie

Posts

Joined
Wed Jul 13, 2011 1:16 am
Location - Den Helder

Post by reynierpm » Fri Aug 12, 2011 11:55 pm

Hi:
I change the code in files, clear cookies and get this error:
$.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
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by seniorx » Sun Aug 28, 2011 12:54 am

I did all the steps, made all the changes on those files but still not working... Deleting the cookies also.
Hope someone can help me, i'v been trying many ways.
uksitebuilder wrote:Thanks to Qahar

There is however an additional code change that is required, especially if using SEO URLs otherwise a cookie is set only on a per category basis and when switching to a different category sometimes it defaults back to list view.

Here is the full code change for category.tpl

Find:

Code: Select all

$.cookie('display', 'grid');
Change to:

Code: Select all

$.cookie('display', 'grid', { path: '/' });
Find:

Code: Select all

$.cookie('display', 'list');
Change to:

Code: Select all

$.cookie('display', 'list', { path: '/' });
Find:

Code: Select all

display('list');
Change to:

Code: Select all

display('grid');
The above changes should be done to the following files:

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

or better still use vQmod -> http://forum.opencart.com/viewtopic.php ... ilit=vqmod

With my attached xml file:
uksb_grid_view_default.xml

New member

Posts

Joined
Mon Aug 15, 2011 2:07 am

Post by uksitebuilder » Sun Aug 28, 2011 12:57 am

Did you manually make the changes or did you use the vQmod file ?

If manually, please paste contents or attach the file you edited

If you used vQmod, then please attach the cached file

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by cryoutcreations » Mon Sep 05, 2011 3:44 am

I think the easiest mod to make grid default (until it will be included as an option in the admin) is to add

Code: Select all

<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
in the theme's footer.tpl.

It is safe to use as it checks if the function is defined before calling it, so the browser doesn't spit out a javascript error on pages without products on them.

LE: I've written a module that does this without the need to edit the theme anymore: CR2 Grid Enabler


Posts

Joined
Tue Jun 14, 2011 7:24 pm


Post by dustyadmin » Sun Sep 11, 2011 1:03 pm

Hi guys. Is there any way to do this in OC version 1.4.9.3? I have a custom theme installed and can't update to 1.5 because I have made significant modifications to. I am so new to this and am not a programmer. In fact, I had a programmer but he has a family emergency and I have been stuck trying to learn how to customize everything myself. I desperately want to be able to have the user be able to actually select between grid and list view where the grid view is set as default. I'm willing to pay someone to help me do this. Here is my website and I would love if someone might be able to contact me to help me. My email is christa at dustyknuckles.com and our website address is www.dustyknuckles.com/shop

Thanks so much !

Newbie

Posts

Joined
Sun Sep 11, 2011 12:58 pm

Post by smitch6 » Mon Sep 19, 2011 5:01 pm

strange i tried manually editing the code and that didn't work so i tried the module and that didn't work either
i'm still getting the option for list/grid

any ideas please thanks

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by smitch6 » Mon Sep 19, 2011 5:16 pm

i just had a thought i think this doesn't actually remove the option of list/grid does it?

i'd like to remove that option and only have grid is this possible please

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by cryoutcreations » Mon Sep 19, 2011 5:31 pm

smitch6 wrote:i just had a thought i think this doesn't actually remove the option of list/grid does it?
Nope, it does not remove the List/Grid selector. It just switches the view to Grid (without you clicking on it every time).
But you just gave me the idea to include this "Hide selector" option in the module :)


Posts

Joined
Tue Jun 14, 2011 7:24 pm


Post by smitch6 » Mon Sep 19, 2011 5:34 pm

brill cos i'd much prefer not to give them the option
can you let me know if and when you have it sorted please ;D

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by uksitebuilder » Mon Sep 19, 2011 6:02 pm

In which case you need to edit the following files to remove the links:

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by smitch6 » Mon Sep 19, 2011 6:07 pm

what should i remove please?

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by uksitebuilder » Mon Sep 19, 2011 6:18 pm

Code: Select all

<div class="display"><b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?></a></div>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by smitch6 » Mon Sep 19, 2011 8:25 pm

brill worked a treat ;D
thanks for your help on this topic, off to the next one now lol

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by matlamont » Mon Sep 26, 2011 10:12 pm

for anyone who have tried all the above and still opencart displays list view the problem lies with you hosting providers firewall settings rejecting the cookie opencart is trying to set to display grid view

http://www.burningdesirewales.co.uk


Newbie

Posts

Joined
Mon Sep 26, 2011 10:07 pm
Who is online

Users browsing this forum: No registered users and 26 guests