Page 1 of 2 12 LastLast
Results 1 to 10 of 1673

Hybrid View

  1. #1
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    79
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    Hi guys,
    How can we add additional product images in this template?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by Georgecy View Post
    Hi guys,
    How can we add additional product images in this template?
    Not really a function of a template.

    There are mods for additional images and standard info at https://www.zen-cart.com/content.php...s-to-a-product
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    79
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    Thank you for the reply. I was aware of the instructions for the multiple images but even though they worked with the responsive classic, I was not able to get them to work in the ZCA template.

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: ZCA Bootstrap Template

    Hi

    Using 1.55e
    https://sourceforge.net/projects/zencart-italia/
    It has some changes to comply with local rules, and some other "minor" ones

    Anyhow when activated the template I get this:

    Code:
    [14-Nov-2018 22:31:48 Europe/Rome] Request URI: /benessere/index.php?main_page=login, IP address: ::1
    #1  trigger_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:167]
    #2  queryFactory->show_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:139]
    #3  queryFactory->set_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:266]
    #4  queryFactory->Execute() called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:152]
    #5  require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php:84]
    #6  require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php:120]
    #7  require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\newbs\index.php:97]
    [14-Nov-2018 22:31:48 Europe/Rome] PHP Fatal error:  1054:Unknown column 'pages_title' in 'order clause' :: select * from ezpages where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title ==> (as called by) C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 152 <== in C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php on line 167
    Does it have to do with these:

    includes/modules/ezpages_bar_header.php
    PHP Code:
      // query modified for multi-language support
      
    $page_query $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title 
                                 from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                 where e.pages_id = et.pages_id 
                                 and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "'  
                                 and status_header = 1 
                                 and header_sort_order > 0 
                                 order by header_sort_order, pages_title"
    );
      
    // end of modification 
    includes/modules/ezpages_bar_footer.php
    PHP Code:
      // query modified for multi-language support
      
    $page_query $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title 
                                 from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                 where e.pages_id = et.pages_id 
                                 and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "' 
                                 and status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title"
    );
      
    // end of modification 
    includes/modules/sideboxes/ezpages.php
    PHP Code:
        // query modified for multi-language support
        
    $page_query $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order, 
                                   e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window, 
                                   e.page_is_ssl, et.pages_title 
                                   from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                   where e.pages_id = et.pages_id 
                                   and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "'  
                                   and status_sidebox = 1 
                                   and sidebox_sort_order > 0 
                                   order by sidebox_sort_order, pages_title"
    );
        
    // end of modification 
    How to fix it?

    Thank you

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: ZCA Bootstrap Template

    change them to
    PHP Code:
      // query modified for multi-language support
      
    $page_query $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title 
                                 from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                 where e.pages_id = et.pages_id 
                                 and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "'  
                                 and status_header = 1 
                                 and header_sort_order > 0 
                                 order by header_sort_order, et.pages_title"
    );
      
    // end of modification 
    includes/modules/ezpages_bar_footer.php
    PHP Code:
      // query modified for multi-language support
      
    $page_query $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title 
                                 from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                 where e.pages_id = et.pages_id 
                                 and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "' 
                                 and status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, et.pages_title"
    );
      
    // end of modification 
    includes/modules/sideboxes/ezpages.php
    PHP Code:
        // query modified for multi-language support
        
    $page_query $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order, 
                                   e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window, 
                                   e.page_is_ssl, et.pages_title 
                                   from  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et  
                                   where e.pages_id = et.pages_id 
                                   and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "'  
                                   and status_sidebox = 1 
                                   and sidebox_sort_order > 0 
                                   order by sidebox_sort_order, et.pages_title"
    );
        
    // end of modification 

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by Design75 View Post
    change them to
    Thank you.
    No luck, same error in the log.
    Also forgot in the previous post: the page loads only the top navbar with only the "login" button visible, if that might help.

    I get this in admin when changing to ZCA:
    ? ZCA_BOOTSTRAP_CONFIG_WARNING

    I'll try to see if there are other ezpages related snips, and language files maybe?

  7. #7
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: ZCA Bootstrap Template

    Here is what I found more:

    includes/pages/page/header.php
    has this
    PHP Code:
    $sql "select * from " TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et 
            where e.pages_id = et.pages_id 
              and et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "' 
              and e.pages_id = " 
    . (int)$ezpage_id;
    // comment the following line to allow access to pages which don't have a status switch set to Yes:
    $sql .= " AND (e.status_toc > 0 or e.status_header > 0 or e.status_sidebox > 0 or e.status_footer > 0)";

    // Check to see if page exists and is accessible, retrieving relevant details for display if found
    $var_pageDetails $db->Execute($sql);
    // redirect to home page if page not found (or deactivated/deleted):
    if ($var_pageDetails->EOF) {
      require(
    DIR_WS_MODULES zen_get_module_directory('require_languages.php'));
      
    $messageStack->add_session('header'ERROR_PAGE_NOT_FOUND'caution');
      
    header('HTTP/1.1 404 Not Found');
      
    zen_redirect(zen_href_link(FILENAME_DEFAULT));
    }

    //check db for prev/next based on sort orders
    $pos = (isset($_GET['pos'])) ? $_GET['pos'] : 'v';  // v for vertical, h for horizontal  (v assumed if not specified)
    $vert_links = array();
    $toc_links = array();
    //  $pages_order_query = "SELECT pages_id FROM " . TABLE_EZPAGES . " WHERE status = 1 and vertical_sort_order <> 0 ORDER BY vertical_sort_order, horizontal_sort_order, pages_title";
    //  $pages_order_query = "SELECT * FROM " . TABLE_EZPAGES . " WHERE ((status_sidebox = 1 and sidebox_sort_order <> 0) or (status_footer = 1 and footer_sort_order <> 0) or (status_header = 1 and header_sort_order <> 0)) and alt_url_external = '' ORDER BY header_sort_order, sidebox_sort_order, footer_sort_order, pages_title";

    // next query modified for multi-language support
    $pages_order_query "SELECT e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.header_sort_order, e.sidebox_sort_order, 
                          e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.status_header, e.status_sidebox, e.status_footer, status_toc, et.pages_title, 
                          et.pages_html_text  
                          FROM  " 
    TABLE_EZPAGES " e, " TABLE_EZPAGES_TEXT " et 
                          WHERE ((status_toc = 1 and toc_sort_order <> 0) and toc_chapter= :chapterID )
                          AND alt_url_external = '' and alt_url = '' 
                          AND et.languages_id = '" 
    . (int)$_SESSION['languages_id'] . "' 
                          AND e.pages_id = et.pages_id
                          ORDER BY toc_sort_order, pages_title"
    ;
    // end modification 
    I changed last line to
    PHP Code:
    ORDER BY toc_sort_orderet.pages_title"; 
    But no joy.

    Then there are these other modified files:

    admin/ezpages.php
    which I don't know how, too many changes for my comprehension.

    includes/extra_datafiles/ezpages_multilangauge_database_names.php
    admin/includes/extra_datafiles/ezpages_multilangauge_database_names.php
    these two are the same, and I'd guess are not the issue
    PHP Code:
    <?php
    /**
     * @package admin
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: ezpages_multilangauge_database_names.php 2006-05-16 Neville Kerr $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die(
    'Illegal Access');
    }

    define('TABLE_EZPAGES_TEXT'DB_PREFIX 'ezpages_content');
    ?>

  8. #8
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by keneso View Post
    I get this in admin when changing to ZCA:
    ? ZCA_BOOTSTRAP_CONFIG_WARNING
    Ok this is not an issue I copied the extra definition file to the Italian directory.

  9. #9
    Join Date
    Apr 2019
    Location
    shanghai
    Posts
    27
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    Click image for larger version. 

Name:	RTX.jpg 
Views:	186 
Size:	54.9 KB 
ID:	18493
    http://www.zcadditions.com

    header_php_shopping_cart_zca_bootstrap.php

    PHP Code:
    if (!zca_bootstrap_active()) {
        return;
    }

    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_SHOPPING_CART');

    require(
    DIR_WS_MODULES zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE); 
    //$breadcrumb->add(NAVBAR_TITLE);

  10. #10
    Join Date
    Apr 2019
    Location
    shanghai
    Posts
    27
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    index.php?main_page=create_account

    Uncaught TypeError: Cannot set property 'className' of null


    Click image for larger version. 

Name:	1.jpg 
Views:	175 
Size:	62.2 KB 
ID:	18494

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 107
    Last Post: 11 Nov 2024, 08:28 PM
  2. v150 aBagon Template Support Thread
    By VJef in forum Addon Templates
    Replies: 54
    Last Post: 5 Sep 2020, 08:44 PM
  3. v155 ZCA Bootstrap Template 1.0 (BETA)
    By rbarbour in forum Addon Templates
    Replies: 74
    Last Post: 25 Apr 2018, 07:05 PM
  4. TB Sempre Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 48
    Last Post: 19 Mar 2015, 06:33 PM
  5. Wallet Template - Support Thread
    By zami in forum Addon Templates
    Replies: 45
    Last Post: 25 Mar 2010, 10:15 PM

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