Forums / Addon Templates / Responsive Sheffield Blue v2.0

Responsive Sheffield Blue v2.0

Views: 310,613

Results 1,381 to 1,400 of 1,514
7 Feb 2018, 5:50 AM
#1381
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Responsive Sheffield Blue v2.0

OK on the home page I have tabs called Newest, Featured, Specials and when I click on them I get the following:

The requested URL /section-1 was not found on this server.
The requested URL /section-2 was not found on this server.
The requested URL /section-3 was not found on this server.

7 Feb 2018, 7:51 AM
#1382
francois avatar

francois

New Zenner

Join Date:
Sep 2012
Posts:
42
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Hope someone can help me as I am a bit stumped!

I recently upgraded my site to ZCv1.5 and also installed the latest version of this template. Before I went live, I added all the mods and tested everything very thoroughly (https://www.experilab.co.za/demo).
Went live yesterday (https://www.experilab.co.za) but now the left sideboxes suddenly show up on mobile devices (in stead of only the centre column). I checked all admin settings twice after going live.

Any ideas of where to look?

7 Feb 2018, 9:46 AM
#1384
francois avatar

francois

New Zenner

Join Date:
Sep 2012
Posts:
42
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Francois:

Hope someone can help me as I am a bit stumped!

I recently upgraded my site to ZCv1.5 and also installed the latest version of this template. Before I went live, I added all the mods and tested everything very thoroughly (https://www.experilab.co.za/demo).
Went live yesterday (https://www.experilab.co.za) but now the left sideboxes suddenly show up on mobile devices (in stead of only the centre column). I checked all admin settings twice after going live.

Any ideas of where to look?

SOLVED
Not sure how this happened, but when the template was reinstalled after going live, it somehow did not update the show_box_min_width value in the LAYOUT_BOXES table in the database (value should be 0). I checked and it looks like all other settings are correct. So I edited them via phpMyAdmin and all is well...
Worries me a bit about why this happened...

7 Feb 2018, 6:10 PM
#1385
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

The tabs is for sure a bug. If it is set to false which is by default the tabs shouldn't show on home page. If you set it to true than tabs work. I am guessing the javascript needs to be updated.

Now onto another issue; when I go to products_all, products_new, products_featured I get the TEXT_NO_PRODUCTS. This is defined in index.php, I am thinking maybe it needs to go into English.php of the template instead?

7 Feb 2018, 6:58 PM
#1386
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Responsive Sheffield Blue v2.0

tmccaff:

The tabs is for sure a bug. If it is set to false which is by default the tabs shouldn't show on home page. If you set it to true than tabs work. I am guessing the javascript needs to be updated.

Now onto another issue; when I go to products_all, products_new, products_featured I get the TEXT_NO_PRODUCTS. This is defined in index.php, I am thinking maybe it needs to go into English.php of the template instead?
I was half-heartily looking for it yesterday, but thought I had posted a correction for the javascript related issue, as I recall it was a combination of JS and php changes to not cause a JS error when no product were to be in that "group" and the group(s) to not be shown.

Ahhh, a reproducible description of a problem. So, two basic ways to address. Could put the desired verbiage in each of the applicable files in includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/

products_new.php
products_all.php
products_featured.php

If for some reason you wanted to have three distinctly different versions of the text or as considered could add it to an override file for the language itself. I suggest override to make upgrades easier.

This would be in: includes/langiages/YOUR_TEMPLATE/YOUR_LANGUAGE.php which could contain just this one define as a standard install will then load the base language file after loading this override file.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Feb 2018, 7:08 PM
#1387
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

@mc12345678 I searched for it and only thing I found was to remove the <?php if ($zc_show_featured == true) { ?> and you said something about javascript.

this is where I seen it:

see #333in this thread. <https://www.zen-cart.com/showthread....25#post1291125

as someone referenced this.. thanks. Removing it as suggested don't work for me.

7 Feb 2018, 7:43 PM
#1388
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Responsive Sheffield Blue v2.0

tmccaff:

@mc12345678 I searched for it and only thing I found was to remove the <?php if ($zc_show_featured == true) { ?> and you said something about javascript.

this is where I seen it:

see #333in this thread. <https://www.zen-cart.com/showthread....25#post1291125

as someone referenced this.. thanks. Removing it as suggested don't work for me.
The link above got messed up somehow (happens sometimes), this was the post that was reported to solve the issue with solution developed by jpda: https://www.zen-cart.com/showthread.php?217203-Responsive-Sheffield-Blue-v2-0&p=1294252#post1294252

The conversation continued into the next page about needing to modify another file as well...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Feb 2018, 8:35 PM
#1389
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

There was another issue with the Featured products in Responsive Sheffield Blue....below my notes from what I did in addition to fix by jpda:

"OK. I see in includes/modules/sheffield blue/featured products - it says if Carousel Featured Producsts called for then do this...which uses the class 'panel' and its css styling. And it says if not doing that, then...do such and such, which is what Sheffield Blue wants and uses that styling.

In Winchester Black Responsive, the Carousel for Featured Products is used and in the admin/configs there is a heading to turn it on, modify it etc.

Sheffiled Blue Resp doesn't use the Carousel so the options to turn it on/off/modify aren't present on the admin/configs page . But my database which includes my earlier Winchester Black stuff has the options config, and its turned on because that's what I did in the Winchester template.

Solution: in phpMyAdmin, find in zen configuration: Carousel Featured Products and edit from 'true' to 'false'."

7 Feb 2018, 9:34 PM
#1390
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Responsive Sheffield Blue v2.0

tmccaff:

Hopefully, I got this right not any more of that non-numeric value error. Thanks for that, what I read was to change this in categories_ul_generator.php

line #53:

$result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '' );

> 
> to the following:
> 
> ```php
$result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ((float)$level+1) . '"' : '' );

also line 73:

$result .= $this->buildBranch($category_id, $level+1, $submenu, $category_link . '_');

> 
> to the following:
> 
> ```php
$result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ((float)$level+1) . '"' : '' );

Fyi, it appears that there was a misunderstanding. The link provided to resolve this issue was to the post in that thread that resolves the issue as it is to be done in ZC 1.5.6 and makes one modification. The solution makes one modification at the start of the function rather than at each use.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Feb 2018, 9:48 PM
#1391
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

mc12345678:

Fyi, it appears that there was a misunderstanding. The link provided to resolve this issue was to the post in that thread that resolves the issue as it is to be done in ZC 1.5.6 and makes one modification. The solution makes one modification at the start of the function rather than at each use.

I tried that solution, I downloaded from GitHub v1.60 and still get that non-numeric value error.

Another thing I am thinking to add admin config to this for SHOW_NEW_PRODUCTS, SHOW_FEATURED_PRODUCTS, SHOW_SPECIAL_PRODUCTS instead of editing those files maybe this will be in next update of this template?

Thanks for all the help

7 Feb 2018, 10:23 PM
#1392
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Another bug which is no big deal but seeing why this isn't being displayed.

In the Admin>Responsive>Configuration the values are empty only the version is showing which is 2.0. The Homepage Slideshow under value is blank; Also ez pages.

8 Feb 2018, 2:25 AM
#1393
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

If anyone is interested I added the Show_featured, New, and specials configuration to the admin and edit the files this way you can turn these off and on in the admin without messing with the files themselves.

Hopefully, will be an update soon for this great template.

Regarding the bug above; I removed the installer in admin and made a sqlpatch instead and now it shows the values. The installer I am guessing needs to be rewritten.

8 Feb 2018, 10:11 AM
#1394
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Responsive Sheffield Blue v2.0

tmccaff:

I tried that solution, I downloaded from GitHub v1.60 and still get that non-numeric value error.

Another thing I am thinking to add admin config to this for SHOW_NEW_PRODUCTS, SHOW_FEATURED_PRODUCTS, SHOW_SPECIAL_PRODUCTS instead of editing those files maybe this will be in next update of this template?

Thanks for all the help
Versions 1.5.5, 1.5.6 and 1.6.0 are all different in their own way on github. There was not a suggestion to completely replace the file and when comparing the file from 1.6.0 to 1.5.6, 1.6.0 doesn't have the correction that 1.5.6 has so it is no surprise that the same issue was occurrung with the 1.6.0 version of the file. The posted solution was to just incorporate the single line of $level = (int)$level;

That establishes $level from that point on to be an integer, whether that is 0 or some other value. 1.5.6 is somewhat the next 1.5.5 where 1.6.0 has some significant differences in structure and operation and may or may not have the next best fix.

As to the above "controls" not sure I understand, there are a lot of settings in the configuration area to adjust display of each of those three "topics". As to an update to the template? Have you noticed the when this template was last updated? Have you noticed the repeat of posting of the same issue(s) and reference to the solution(s) since it was last updated?

It seems that out of respect for Anne, no one else has taken all of these fixes and packaged them up for submission. Afterall, this is all her work.

And generally speaking if have a solution to a problem then just post it. I mean look at how soxophoneplayer jumped in above.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

9 Feb 2018, 6:56 PM
#1395
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I have been trying to contact Anne for some work, I guess shes very busy. Last login here was awhile back. She does excellent work

12 Feb 2018, 11:25 AM
#1396
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

tmccaff:

OK on the home page I have tabs called Newest, Featured, Specials and when I click on them I get the following:

The requested URL /section-1 was not found on this server.
The requested URL /section-2 was not found on this server.
The requested URL /section-3 was not found on this server.

The tabs are working fine for me, but Google reports 404 errors in Google Console. I understand that the Java code catches the clicks on the tabs and displays the appropriate information, but it's not healthy to have 404 errors reported by Google, especially on the home page.
Any way around this?

12 Feb 2018, 10:21 PM
#1397
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I supposed I could just do a 301 from .htacess to redirect to these pages to the home page, but it would be so much neater if there was a way for Google to crawl these pages.

Anyone got any ideas?

14 Feb 2018, 10:05 AM
#1398
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Anyone please?

15 Feb 2018, 5:29 PM
#1399
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Responsive Sheffield Blue v2.0

ttfan:

I supposed I could just do a 301 from .htacess to redirect to these pages to the home page, but it would be so much neater if there was a way for Google to crawl these pages.

Anyone got any ideas?

I do not beleive that these are different pages. I am not an expert on this but all you are doing is hiding and revealing areas of the page when you click on the tab. Zen cart does have seperate pages to display new items and featured items. If you look at the html for the page you will find all the items on each tab are already on the page. They just arn't visable. Therefore I would reason that it is not necessary for google to list the tabs as seperate pages.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

16 Feb 2018, 8:00 AM
#1400
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Thank you.

Yes, the problem is that Google seem them as separate pages, and since the link does not actually lead to a page that exists, and produces a 404 error, Google reports it as a 404 error in Google Console.