Forums / Addon Templates / Responsive Sheffield Blue v2.0

Responsive Sheffield Blue v2.0

Views: 310,613

Results 1,461 to 1,480 of 1,514
13 Jul 2019, 3:01 PM
#1461
mc12345678 avatar

mc12345678

Totally Zenned

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

Responsive Sheffield Blue v2.0

spminis:

I've had to switch to Zen's responsive classic template because this template woouldn't work properly with PHP 7. That's too bad.

Ummm. If you upgraded the individual template files using the current ZC responsive or where not available template default files to compare then it should be possible to continue using the template.

See the template files at one point were from one or the other template sets. They were modified to some extent to offer some sort of different view. Then other code added in around that to maybe add this or that feature. Meanwhile underneath the code still was basic ZC template file operations code. Well, in many cases, that code needed to be modified to support ever stricter requirements.

Basically like a plugin is to be incorporated into a template, the template needs to be incorporated into the ZC default files.

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

28 Aug 2019, 7:37 AM
#1462
bilbaxo avatar

bilbaxo

New Zenner

Join Date:
Jul 2015
Posts:
24
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

hello
is this template compatible with the last versions of Zencart ?
Than's for your answer

30 Aug 2019, 11:12 AM
#1463
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Attachment 18636
What would be best way to change footer from older to newer version without replacing all templates files? I looked into current version files but don't see social defines, links and images.

30 Aug 2019, 11:32 AM
#1464
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Trying to remove socail side bar and insert social links/icons n footer like current version.

jsarwar:

Attachment 18636
What would be best way to change footer from older to newer version without replacing all templates files? I looked into current version files but don't see social defines, links and images.

11 Sep 2019, 1:54 PM
#1465
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I do have a question,

If you take a look at this website for an example:

https://www.smartlivingcompany.com

This is the company I get my products. But anyways if you look at on a desktop layout you see some links like "Furniture, Outdoor, Lighting, etc." They do have drop down menus.

Is there a possibility or a why I can have that menu layout instead of one dropdown layout?

12 Sep 2019, 4:09 AM
#1466
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Responsive Sheffield Blue v2.0

If you were to validate the html on that site and found that it had 159 errors and 39 warnings on the main page, would you still like it? If you turned off the display of images and saw what a SE sees, would you still like it?

No sitemap. Fair mobile friendliness.

Not trying to beat you up over this. Just saying that a Google search for 'drop down menu in html and css' will give you several options with directions on making them your own -- correctly. Anything from w3schools is great.

Google 'drop down menu generator' and you'll find several free generators.

Point is, just because you think it looks pretty doesn't mean it works. Too often one design is over-influenced by one that doesn't really work.:no:

Open source -- Make it yours:yes:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

14 Oct 2019, 9:53 AM
#1467
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I'm getting a few errors since my host moved me to a new server which has php 7.1. Is anyone able to help with how to address this issue?

--> PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /home/thegluep/public_html/includes/modules/responsive_sheffield_blue/category_row.php:39

Line 39 of category_row.php contains

    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
14 Oct 2019, 10:24 AM
#1468
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I have the same issue with additional_images.php on line 120, I gather the issue is related the array, but my php knowledge is very basic and I don't know how to change it make it work with php 7.1

Line 120 of additional images is pretty much the same as category_row.php

    $list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
14 Oct 2019, 1:55 PM
#1469
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Responsive Sheffield Blue v2.0

CunningStunt2:

I'm getting a few errors since my host moved me to a new server which has php 7.1. Is anyone able to help with how to address this issue?

--> PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /home/thegluep/public_html/includes/modules/responsive_sheffield_blue/category_row.php:39

> 
> Line 39 of category_row.php contains
> ```php
    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',

This error means that the variable in question was initialized as a string rather than an array. So change

$list_box_contents = '';

to

$list_box_contents = array();

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Oct 2019, 2:33 PM
#1470
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Thanks for the pointers. I think i've fixed error additional_images.php was generating by upgrading to Lat9's Image Handler 5, which contained the additional_images.php with the variables initialised as an array. But due to my very basic knowledge of php i'm still having a bit or trouble re-formatting the category_row.php line so php 7.1. does not generate an error. I tried to emulate the changes between the formatting on the old additional_images and the new one from IH5 but obviously did not do it right as I broke the site and had to restore category_row.php to the default.

I also checked the github repository for this file but the lines in question is in the same format as it looks like that file might not be needed in future versions.
https://github.com/zencart/zencart/blob/v156/includes/modules/category_row.php

$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                           'text' => '<div class="common-wrap"><a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a></div>');
17 Oct 2019, 8:49 AM
#1471
brittainmark avatar

brittainmark

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

I think all you need to do is make sure line 22 (or there about) in category_row.php is php $list_box_contents = array(); not ```php
$list_box_contents = '';

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

4 Nov 2019, 9:47 PM
#1472
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Just found and installed this template. I love it! Fixes all my issues with Responsive_classic.

I want to change some colors on the template. No instructions in the help file on how to do that. Should be able to change in stylesheet.css but that doesn't have any effect. Path: ~/includes/templates/responsive_sheffield_blue/css/stylesheet.css

Any pointers appreciated!

5 Nov 2019, 10:53 AM
#1473
brittainmark avatar

brittainmark

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

Probably the easiest way to find out what css file is applying the colour is to left click on the element you want to change the colour for in your Browser and select inspect element (inspect in chrome) You if you hover over the css file name it will give you the full path.. You should then get a list of the css that is attached to the element. Alternatively and probably better create your own style sheet called maybe stylesheet_mycolours.css and put your css changes in to that is should be located in "YOUR_SITE/includes/templates/responsive_sheffield_blue/css/". The above can help you to identify the elements you need to change. You may find this useful https://www.zen-cart.com/wiki/index.php/Customisation_-_Templates_-_Stylesheets_-_Per-Page-Rules

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

5 Nov 2019, 3:50 PM
#1474
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

brittainmark:

Probably the easiest way to find out what css file is applying the colour is to left click on the element you want to change the colour for in your Browser and select inspect element (inspect in chrome) You if you hover over the css file name it will give you the full path.. You should then get a list of the css that is attached to the element. Alternatively and probably better create your own style sheet called maybe stylesheet_mycolours.css and put your css changes in to that is should be located in "YOUR_SITE/includes/templates/responsive_sheffield_blue/css/". The above can help you to identify the elements you need to change. You may find this useful https://www.zen-cart.com/wiki/index.php/Customisation_-_Templates_-_Stylesheets_-_Per-Page-Rules

Thanks! Good ideas. I have tried using inspect element before but I must admit I'm not good at it. I'll give it another go. Meanwhile, I tried processing an order and came up with some kind of character set error each time the program stepped through the process. Click OK on the error and the page renders fine but that's a non-starter from a customer perspective. May just have to abandon the template.

5 Nov 2019, 4:06 PM
#1475
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Responsive Sheffield Blue v2.0

We like to use stylesheet_zcustom.css as it will most often load last. Stylesheets load alphabetically with stylesheet.css always loading first. So, if we used the mycolours(sic) stylesheet and later added a normal_colors stylesheet, the normal_colors would load last and take precedent. If we added a main_colors stylesheet, the mycolours(sic) would still prevail.

One extra point is that responsive stylesheets often load after their alphabetical "order". So, even using stylesheet_zzz.css, you might find the occasion where a call in this file is "taken over" by one of the responsive stylesheets. This is where one might use the !important property to override subsequent rules.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Nov 2019, 4:45 PM
#1476
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

THanks, again. I've been playing a little. It is indeed stylesheet.css in the template folder that is setting the colors according to the inspector but just changing the hex code is having mixed results/effects. Looks like I'll have to become something of a css expert just to make what I thought was a "simple, small" change! This is why we use sandboxes...

5 Nov 2019, 5:18 PM
#1477
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Responsive Sheffield Blue v2.0

Actually, if you are working on CSS and put all changes in the stylesheet_zcustom.css, you can operate without a sandbox. That's the beauty of that file. You don't have to go searching all over for where you made the change.:yes:

One thing of note: If you are making CSS layout changes (versus color) to your stylesheet, you'll need to possibly add extra information if the change only applies to (for example) screen sizes less than 768 pixels in width.

Let's say you were changing the alignment of a div in a less than 768 pixel environment. You would need to add the following to the stylesheet_zcustom.css```
@media (min-width:0px) and (max-width:767px){/bof responsive/
#whatever {float:left;}


Yes, it can get interesting:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Apr 2020, 4:32 AM
#1478
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

Hi....
So I got it going.... https://www.candygoround.com
but.....when I go to 'add to cart' ....I get a blank page...

[17-Apr-2020 22:30:24 America/Boise] Request URI: /store/index.php?main_page=product_info&cPath=5&products_id=23, IP address: 108.204.4.19
#1 header() called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php:70]
#2 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php:48]
#3 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php:170]
#4 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/index.php:26]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/twomuch1/public_html/other_websites/candygoround/store/includes/languages/english/responsive_sheffield_blue/header.php:1) in /home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php on line 70.

any ideas?
thanks.

18 Apr 2020, 5:47 AM
#1479
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

I can't log in...
https://www.candygoround.com

[17-Apr-2020 23:45:12 America/Boise] Request URI: /store/index.php?main_page=products_all, IP address: 10.179.3.219
#1 header() called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php:70]
#2 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php:48]
#3 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php:170]
#4 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/index.php:26]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/twomuch1/public_html/other_websites/candygoround/store/includes/languages/english/responsive_sheffield_blue/header.php:1) in /home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php on line 70.

[17-Apr-2020 23:45:13 America/Boise] Request URI: /store/index.php?main_page=login, IP address: 10.179.3.99
#1 header() called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php:70]
#2 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php:48]
#3 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/autoload_func.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php:170]
#4 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/application_top.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/index.php:26]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/twomuch1/public_html/other_websites/candygoround/store/includes/languages/english/responsive_sheffield_blue/header.php:1) in /home4/twomuch1/public_html/other_websites/candygoround/store/includes/init_includes/init_templates.php on line 70.

[17-Apr-2020 23:45:13 America/Boise] Request URI: /store/index.php?main_page=login, IP address: 10.179.3.99
#1 header() called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/functions/functions_general.php:43]
#2 zen_redirect() called at [/home4/twomuch1/public_html/other_websites/candygoround/store/includes/modules/pages/login/header_php.php:17]
#3 require(/home4/twomuch1/public_html/other_websites/candygoround/store/includes/modules/pages/login/header_php.php) called at [/home4/twomuch1/public_html/other_websites/candygoround/store/index.php:36]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/twomuch1/public_html/other_websites/candygoround/store/includes/languages/english/responsive_sheffield_blue/header.php:1) in /home4/twomuch1/public_html/other_websites/candygoround/store/includes/functions/functions_general.php on line 43.

why?

18 Apr 2020, 11:44 AM
#1480
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

The reason for the two "issues" still isn't in either of those two log files. As pointed out by others in resolving other issues, those are warnings and not errors. Errors cause blank screens, warnings tend to be nuisances but not really cause a problem. There is a little bit of a caveat to that "blank screen" part though which is why the ZC forum has information about addressing it. It so happens that some things are or have been so frequently asked that an entire group of frequently asked questions was generated.

So, to the message in the file about headers being previously sent, there is this: https://www.zen-cart.com/content.php?129-warning-headers-already-sent

For the blank screen or partial blank screen: http://www.zen-cart.com/content.php?124-blank-page

There probably are updated versions of those in the new https://docs.zen-cart.com area... Check it out!

Long and short, the issue identified in the above files doesn't exist in a clean install of this plugin. Something was modified to cause it and the above FAQs should help identify it and to learn more.

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