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.uksitebuilder wrote:make sure you have cleared your cookies
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;
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.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;
thanks for your help.
thanks! works perfectlychokoret wrote:Findfrom category.tplCode: Select all
<div class="product-list">
and change it toCode: Select all
<div class="product-grid">
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.
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:Change to:Code: Select all
$.cookie('display', 'grid');
Find:Code: Select all
$.cookie('display', 'grid', { path: '/' });
Change to:Code: Select all
$.cookie('display', 'list');
Find:Code: Select all
$.cookie('display', 'list', { path: '/' });
Change to:Code: Select all
display('list');
The above changes should be done to the following files:Code: Select all
display('grid');
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:
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
If manually, please paste contents or attach the file you edited
If you used vQmod, then please attach the cached file
I think the easiest mod to make grid default (until it will be included as an option in the admin) is to add
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
Code: Select all
<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
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
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 !
Thanks so much !
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
i'm still getting the option for list/grid
any ideas please thanks
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
i'd like to remove that option and only have grid is this possible please
Nope, it does not remove the List/Grid selector. It just switches the view to Grid (without you clicking on it every time).smitch6 wrote:i just had a thought i think this doesn't actually remove the option of list/grid does it?
But you just gave me the idea to include this "Hide selector" option in the module
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
can you let me know if and when you have it sorted please
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
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
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>
brill worked a treat
thanks for your help on this topic, off to the next one now lol
thanks for your help on this topic, off to the next one now lol
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
Who is online
Users browsing this forum: No registered users and 57 guests