In my local server, it's work!..but i have upload to my production server, isn't work i've using Firefox to check and there are no cookie to save the "display" = "grid".On the contrary, my local sever have cookies and saving the gird..
Anyone can help????
Anyone can help????
Which lines can i input this? and do i need to delete anything.MarketInSG wrote:Clear your browser cookies after you done that and you should see the effect. New users to your website will see view as default 'grid'. Else if you want permanent grid layout, add this:
Code: Select all
<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
Many thanks
Tim
Helps me a lot, i prefer grid view on my site.
My site: Batteries Aussie, Canada battery, Batterie PC. Advice is welcome.
right solutionrudilim wrote:I modified the code to this and it worked for me:
view = $.cookie('display');
if (view) {
display('grid');
} else {
display(view);
}
r
Professional OpenCart Themes and OpenCart Templates at Dynamic Template
This does not work for me.
FROM:
TO:
Any ideas please?
Also, the Currency is not setting to default UK.. It's still staying with US.
Link; shishapen.uk.com
Thanks in advance.
Shayne.
FROM:
Code: Select all
view = $.totalStorage('display');
if (view) {
display(view);
} else {
display('list');
}
//--></script>
<?php echo $footer; ?>
Code: Select all
view = $.totalStorage('display');
if (view) {
display(view);
} else {
display('grid');
}
//--></script>
<?php echo $footer; ?>
Any ideas please?
Also, the Currency is not setting to default UK.. It's still staying with US.
Link; shishapen.uk.com
Thanks in advance.
Shayne.
clear browser cookies after changing that.
Hi there,
I have purchased a "ready to go" website based on the Opencart platform.
Now my problem......I have got the website up and running but my "Products" appear on the site in "list" form as default and I would like the default to be "grid".....
I have Googled the problem and got the answer, which is to copy and paste a section of code into the program. Unfortunately I know nothing about coding and secondly and more important I do not even know how to get into this section (where the code is) to try and do this.
I wonder if anyone can point me in the right direction as I am unable to contact the people that I bought the sight from
This is my site: redacted as possible spam
Many thanks
Mack
I have purchased a "ready to go" website based on the Opencart platform.
Now my problem......I have got the website up and running but my "Products" appear on the site in "list" form as default and I would like the default to be "grid".....
I have Googled the problem and got the answer, which is to copy and paste a section of code into the program. Unfortunately I know nothing about coding and secondly and more important I do not even know how to get into this section (where the code is) to try and do this.
I wonder if anyone can point me in the right direction as I am unable to contact the people that I bought the sight from
This is my site: redacted as possible spam
Many thanks
Mack
hi - i ended up using the above JS as nothing else worked and now all we get is the list view instead of the grid view - any suggestionsMarketInSG wrote:MarketInSG wrote:Clear your browser cookies after you done that and you should see the effect. New users to your website will see view as default 'grid'. Else if you want permanent grid layout, add this:
Code: Select all
<script type="text/javascript">$(document).ready(function() { if(typeof display == 'function') { display('grid'); } });</script>
ADG - Design, Development and Hosting in Australia
Who is online
Users browsing this forum: No registered users and 34 guests