Zen Cart Logo
Forums / Addon Templates / Responsive Sheffield Blue v2.0

Responsive Sheffield Blue v2.0

Views: 309,688

Results 1,361 to 1,380 of 1,514
04 Feb 2018, 16:25
#1361
hivtop avatar

hivtop

New Zenner

Join Date:
Feb 2016
Location:
nm
Posts:
30
Plugin Contributions:
0

Responsive Sheffield Blue v2.0

Sorry lat9 I didn't see your post cuz I forgot to refresh and kept seeing the cached file.. My Bad...

Your fix would have been a bunch easier,,, I amended the whole ' . HTTP_SERVER . DIR_WS_CATALOG . ' string on all the fixes I did to bring my customers back to the shops index.php page cuz I didn't know how to just add the page to the string...

Live and learn...

William
PS... did save your fix in my fix it file for future reference.. LOL

05 Feb 2018, 21:31
#1362
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

How do you remove the Brands in the header? I see only one reference to this:

<li class="brands-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by bra$

              <ul >
               <?php

  $show_manufacturers= false;

I searched for brands-li in css but nothing.. I am lost

05 Feb 2018, 21:40
#1363
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Responsive Sheffield Blue v2.0

If you search the topic for brands, several different solutions are in the results.

05 Feb 2018, 21:56
#1364
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

Weird because I added that line in stylesheet.css I moved it up before ul.slimmenu li.aboutus I guess that was the problem:

ul.slimmenu li.brands-li{display:none;} 
06 Feb 2018, 12:48
#1365
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

Now I get the following error when I click on featured products. Note though I have no featured products.

[06-Feb-2018 07:44:50 America/New_York] PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total ==> (as called by)
includes/classes/split_page_results.php on line 78

06 Feb 2018, 13:07
#1366
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

Why this line and I can't seem to find this in configuration template_debug?

if (TEMPLATE_DEBUG == 'True') echo '\includes\templates\TEMPLATES\templates\tpl_featured_products_default.php<br />then requires tpl_modules_listing_display_order.php<br />then tpl_modules_product_listing.php<br /><br />';//SLT debug
require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php');
require($template->get_template_dir('tpl_modules_product_listing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_product_listing.php');
?>
</div>
``` When I replace tpl_featured_products.php it works, I am confused on what this does as this is the only line in this file with this template.
06 Feb 2018, 13:19
#1367
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

I think it has to do with includes/classes/split_page_results.php file not sure.

06 Feb 2018, 13:42
#1368
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

tmccaff:

I think it has to do with includes/classes/split_page_results.php file not sure.

Search of this thread for 'unknown table' would have identified that as the issue, that the split_page_results.php class file from the distribution was not properly applied to the store.

06 Feb 2018, 15:44
#1369
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

mc12345678:

Search of this thread for 'unknown table' would have identified that as the issue, that the split_page_results.php class file from the distribution was not properly applied to the store.

I did do a search and found this #598 just says figured it out and don't tell you how it's fixed.

06 Feb 2018, 18:06
#1370
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

So do I use the layouts_controller and split_page from template or 1.55? I see there is a new layout_controller which I downloaded for this template

06 Feb 2018, 22:07
#1371
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

tmccaff:

So do I use the layouts_controller and split_page from template or 1.55? I see there is a new layout_controller which I downloaded for this template
Unfortunately as with most software that modifies a cart provided file, the answer tends to lie in what was changed about the original file that needs to be applied to the base/current file?

This is best identified by comparing the file in question against the same file of the ZC version used to create it. Then identify what changes were applied. From there, look at the current version of the same file to identify where to insert the change.

While I've done this a number of times even with this template, I don't at this time have a more direct answer to the question.

07 Feb 2018, 00:08
#1372
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

What I have done and it seems to work now. I looked at this thread:

https://www.zen-cart.com/showthread.php?219801-Making-v154-DIY-Picaflor-Azul-templates-work-with-v1-5-5/page4
Now only problem so far is I am getting this error:

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

Not sure if I done this correct but so far fixes some issues.

Merged common/header_php.php from responsive_classic to this template

Removed the following from includes/templates/responsive_sheffield_blue/templates

fixes WARNING: An Error occurred, please refresh the page and try again message:

tpl_products_all_default.php
tpl_products_new_default.php
tpl_specials_default.php

07 Feb 2018, 00:28
#1373
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

tmccaff:

What I have done and it seems to work now. I looked at this thread:

https://www.zen-cart.com/showthread.php?219801-Making-v154-DIY-Picaflor-Azul-templates-work-with-v1-5-5/page4
Now only problem so far is I am getting this error:

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

Not sure if I done this correct but so far fixes some issues.

Merged common/header_php.php from responsive_classic to this template

Removed the following from includes/templates/responsive_sheffield_blue/templates

fixes WARNING: An Error occurred, please refresh the page and try again message:

tpl_products_all_default.php
tpl_products_new_default.php
tpl_specials_default.php

Again, as stated elsewhere in the forum, hard to tell as the error message has not been provided (warn other readers to just willy-nilly perform the above because of seeing the warning message identified).

Again, a search of this thread for 'tpl_products_all_default.php' identified not only someone having what appears on the surface to be the same issue, but the solution which is to use the template's files... (see: https://www.zen-cart.com/showthread.php?217203-Responsive-Sheffield-Blue-v2-0&p=1327994#post1327994) as to the inability to access the /section-2 "page", a default ZC store does not have that uri, it's not part of this template, and it's difficult to determine what may be causing the issue (I believe that has been something else discussed elsewhere in the forum).

07 Feb 2018, 01:04
#1374
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

Thanks for some reason I re-uploaded everything and working now what is weird I get this:

TEXT_NO_PRODUCTS instead of There are no products to list in this category.

I did a search for it and indeed defined in includes/languages/english/responsive_sheffield_blue/index.php:
define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

And no error messages now just not displaying message

07 Feb 2018, 01:30
#1375
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

When I put it in English.php it works but not on index.php

07 Feb 2018, 03:05
#1376
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

Ugh another error I am almost there I think; searched for this in thread and found nothing:

[06-Feb-2018 21:59:31 America/New_York] Request URI: /, IP address: 98.109.213.21
#1 zen_categories_ul_generator->buildBranch() called at [/var/www/giftboundgifts/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/var/www/giftboundgifts/includes/templates/responsive_sheffield_blue/templates/tpl_modules_mobile_ca$
#3 require(/var/www/giftboundgifts/includes/templates/responsive_sheffield_blue/templates/tpl_modules_mobile_categories_tabs.php) called at [/var/www/giftb$
#4 require(/var/www/giftboundgifts/includes/templates/responsive_sheffield_blue/common/tpl_header.php) called at [/var/www/giftboundgifts/includes/template$
#5 require(/var/www/giftboundgifts/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/var/www/giftboundgifts/index.php:97]

[06-Feb-2018 21:59:31 America/New_York] PHP Warning: A non-numeric value encountered in /var/www/giftboundgifts/includes/classes/categories_ul_generator.php on line 58

this is the line 58:

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

this is what I have in this file:

class zen_categories_ul_generator {
    var $root_category_id = 0,
    $max_level = 0,
    $data = array(),
    $parent_group_start_string = '<ul%s>',
    $parent_group_end_string = '</ul>',
    $child_start_string = '<li%s>',
    $child_end_string = '</li>',
    $spacer_string = '
',
    $spacer_multiplier = 1;
    
    var $document_types_list = ' (3) ';
    // acceptable format example: ' (3, 4, 9, 22, 18) '
    
    function __construct($load_from_database = true)
    {
        global $languages_id, $db;
        $this->data = array();
        $categories_query = "select c.categories_id, cd.categories_name, c.parent_id
										from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
										where c.categories_id = cd.categories_id
										and c.categories_status=1 " .
        								" and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
        								" order by c.parent_id, c.sort_order, cd.categories_name";
        $categories = $db->Execute($categories_query);
        while (!$categories->EOF) {
            $this->data[$categories->fields['parent_id']][$categories->fields['categories_id']] = array('name' => $categories->fields['categories_name'], 'count' => 0);
            $categories->MoveNext();
        }
    }
    
    function buildBranch($parent_id, $level, $submenu=true, $parent_link='')
    {
        $result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '' );
        
        if (($this->data[$parent_id])) {
            foreach($this->data[$parent_id] as $category_id => $category) {
                $category_link = $parent_link . $category_id;
                if (($this->data[$category_id])) {
                    $result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
                } else {
                    $result .= sprintf($this->child_start_string, '');
                }
                $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * 1) . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
                $result .= $category['name'];
                $result .= '</a>';
				  
                if (($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
                    $result .= $this->buildBranch($category_id, $level+1, $submenu, $category_link . '_');
                }
                $result .= $this->child_end_string;
            }
        }
        
        $result .= $this->parent_group_end_string;
        return $result;
    }
    
    function buildTree($submenu=false)
    {
        return $this->buildBranch($this->root_category_id, '', $submenu);
    }
}
07 Feb 2018, 05:05
#1378
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Responsive Sheffield Blue v2.0

tmccaff:

Thanks for some reason I re-uploaded everything and working now what is weird I get this:

TEXT_NO_PRODUCTS instead of There are no products to list in this category.

I did a search for it and indeed defined in includes/languages/english/responsive_sheffield_blue/index.php:
define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

And no error messages now just not displaying message

tmccaff:

When I put it in English.php it works but not on index.php

Okay, again. and this is said in order to get help so that help can be given. Way more information needs to be provided... It doesn't have to be fancy, it doesn't have to be technical, but its like playing a game of say I spy something ....

Take a moment, reread what was written above at least in the first of the two posts... What is contained in there that supports being able to reproduce or diagnose the error? Notice also, that the reason that the word(s) are not displayed is because the file(s) that should contain the definition do not... Ie. searching for TEXT_NO_PRODUCTS to be in the expected file doesn't work, because generally the only reason that the words are not substituted is because the define does not exist. In this case it was found in an index definition file but... And here's probably the most helpful part, we don't know on what page you are/were at when you saw this issue...

Make sense?

07 Feb 2018, 05:17
#1379
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

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:

$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:

$result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ((float)$level+1) . '"' : '' );
07 Feb 2018, 05:18
#1380
tmccaff avatar

tmccaff

Zen Follower

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

Re: Responsive Sheffield Blue v2.0

mc12345678:

Okay, again. and this is said in order to get help so that help can be given. Way more information needs to be provided... It doesn't have to be fancy, it doesn't have to be technical, but its like playing a game of say I spy something ....

Take a moment, reread what was written above at least in the first of the two posts... What is contained in there that supports being able to reproduce or diagnose the error? Notice also, that the reason that the word(s) are not displayed is because the file(s) that should contain the definition do not... Ie. searching for TEXT_NO_PRODUCTS to be in the expected file doesn't work, because generally the only reason that the words are not substituted is because the define does not exist. In this case it was found in an index definition file but... And here's probably the most helpful part, we don't know on what page you are/were at when you saw this issue...

Make sense?

Got you. I will try to be more specific.