Page 138 of 152 FirstFirst ... 3888128136137138139140148 ... LastLast
Results 1,371 to 1,380 of 1518
  1. #1371
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: change hpme link

    Quote Originally Posted by tmccaff View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #1372
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

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

    https://www.zen-cart.com/showthread....h-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

  3. #1373
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: change hpme link

    Quote Originally Posted by tmccaff View Post
    What I have done and it seems to work now. I looked at this thread:

    https://www.zen-cart.com/showthread....h-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....94#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).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #1374
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

    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

  5. #1375
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

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

  6. #1376
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

    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:

    PHP Code:
    $result sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' '' ); 
    this is what I have in this file:

    PHP Code:
    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);
        }


  7. #1377
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: change hpme link

    This issue is not specific to this template... Remember, compare the template file(s) to the ZC core/default to see what has changed or is different than that original file. The issue seen is described here: https://www.zen-cart.com/showthread....87#post1341787
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #1378
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: change hpme link

    Quote Originally Posted by tmccaff View Post
    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
    Quote Originally Posted by tmccaff View Post
    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?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #1379
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

    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:

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

    PHP Code:
    $result sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ((float)$level+1) . '"' '' ); 
    also line 73:

    PHP Code:
    $result .= $this->buildBranch($category_id$level+1$submenu$category_link '_'); 
    to the following:

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

  10. #1380
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: change hpme link

    Quote Originally Posted by mc12345678 View Post
    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.

 

 

Similar Threads

  1. v151 Responsive Sheffield Blue v1.0
    By picaflor-azul in forum Addon Templates
    Replies: 1159
    Last Post: 23 Apr 2023, 01:20 AM
  2. v155 Responsive Classic vs Responsive Sheffield Blue vs ?
    By Zean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2016, 07:01 AM
  3. v154 Responsive Sheffield Blue change menu links
    By Annie_zaz in forum Addon Templates
    Replies: 3
    Last Post: 7 May 2016, 11:33 PM
  4. v154 Responsive Sheffield Blue v.2.0 Pricing not showing
    By SilverHD in forum Addon Templates
    Replies: 13
    Last Post: 4 Nov 2015, 10:57 PM
  5. v154 Questions re: Responsive Sheffield Blue
    By dfontana in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Aug 2015, 02:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR