Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    Aug 2008
    Location
    MEDFORD OREGON
    Posts
    17
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart HELP ! ! !

    Hello:
    Thanks for the reply. But that did not work.. Changed that and it's still the same.

    Also on the Logo on the top of the page, it's showing up as a thumbnail image instead of the full size image?

    www.realestatesignstore.com

    <img class="large-logo" src="mthumb.php?src=includes/templates/FZCF7211/images/logo.png&amp;zc=2&amp;w=192px&amp;h=64px">

    these are the only problems I am having so far... LOL... Still like the theme, but need to get these things fixed A.S.A.P.

    Thanks again in Advance for Your Help.....

    Michael Patti



  2. #22
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,843
    Plugin Contributions
    11

    Default Re: Foundation Theme for ZenCart HELP ! ! !

    i would double check your work with regards to text_description. i did not write the theme, but i have looked it over, and that answer no doubt looks correct.

    with regards to your image situation, you can try replacing code as:

    PHP Code:
    //from
                    <?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' '<img class="large-logo" src="mthumb.php?src=' DIR_WS_TEMPLATE 'images/' HEADER_LOGO_IMAGE '&zc=2&w=' HEADER_LOGO_WIDTH '&h=' HEADER_LOGO_HEIGHT '"/>' '</a>'?>

    //to
    <?php echo '<a  class="large-logo" href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT,,' ' ,' ' ,'class="large-logo"') . '</a>'?>
    i would also look into changing the footer.

    best
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #23
    Join Date
    Aug 2008
    Location
    MEDFORD OREGON
    Posts
    17
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart

    Ya, The Footer is next..

    But the code you gave me for the image did not work.

    if I use the code you gave me the pages do not show at all. ???


    Thanks in advance if you can help....

    here is the code that I have, my default tpl_header:

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2016 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: Author: DrByte Sat Oct 17 22:01:06 2015 -0400 Modified in v1.5.5 $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo zen_output_string_protected(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo zen_output_string_protected($_GET['info_message']);
    }
    ?>

    <!--bof-header logo and navigation display-->
    <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?>
    <header>
    <div class="title-bar hide-for-large">
    <div class="title-bar-left">
    <button class="menu-icon" type="button" data-toggle="offCanvas"></button>
    </div>
    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . '<img class="small-logo" src="mthumb.php?src=' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '&zc=2&w=' . HEADER_SMALL_LOGO_WIDTH . '&h=' . HEADER_SMALL_LOGO_HEIGHT . '"/>' . '</a>'; ?>

    <div class="title-bar-right">
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><i class="fi-shopping-cart medium"></i></a>
    <?php } ?>

    </div>

    </div>

    <div class="grid-container">
    <div class="grid-x grid-padding-x">
    <div class="large-6 cell show-for-large"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . '<img class="large-logo" src="mthumb.php?src=' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '&zc=2&w=' . HEADER_LOGO_WIDTH . '&h=' . HEADER_LOGO_HEIGHT . '"/>' . '</a>'; ?></div>
    <div class="small-12 medium-10 medium-offset-1 large-4 large-offset-2 cell "><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <div class="large-12 cell show-for-large">
    <ul class="dropdown menu" data-dropdown-menu>
    <li class="has-submenu is-down-arrow top-list">
    <a href="#"><?php echo TEXT_NAVBAR_CATEGORIES; ?></a>
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_categories_tabs.php'); ?>
    </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
    </li>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
    </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
    </li>
    <?php }
    } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
    </li>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
    </li>
    <?php } ?>
    </ul>
    </div>
    </div>
    </div>
    </header>
    <?php } ?>

  4. #24
    Join Date
    Aug 2008
    Location
    MEDFORD OREGON
    Posts
    17
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart

    Quote Originally Posted by michaelpattisr View Post
    Ya, The Footer is next..

    But the code you gave me for the image did not work.

    if I use the code you gave me the pages do not show at all. ???


    Thanks in advance if you can help....

    here is the code that I have, my default tpl_header:

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2016 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: Author: DrByte Sat Oct 17 22:01:06 2015 -0400 Modified in v1.5.5 $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo zen_output_string_protected(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo zen_output_string_protected($_GET['info_message']);
    }
    ?>

    <!--bof-header logo and navigation display-->
    <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?>
    <header>
    <div class="title-bar hide-for-large">
    <div class="title-bar-left">
    <button class="menu-icon" type="button" data-toggle="offCanvas"></button>
    </div>
    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . '<img class="small-logo" src="mthumb.php?src=' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '&zc=2&w=' . HEADER_SMALL_LOGO_WIDTH . '&h=' . HEADER_SMALL_LOGO_HEIGHT . '"/>' . '</a>'; ?>

    <div class="title-bar-right">
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><i class="fi-shopping-cart medium"></i></a>
    <?php } ?>

    </div>

    </div>

    <div class="grid-container">
    <div class="grid-x grid-padding-x">
    <div class="large-6 cell show-for-large"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . '<img class="large-logo" src="mthumb.php?src=' . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE . '&zc=2&w=' . HEADER_LOGO_WIDTH . '&h=' . HEADER_LOGO_HEIGHT . '"/>' . '</a>'; ?></div>
    <div class="small-12 medium-10 medium-offset-1 large-4 large-offset-2 cell "><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <div class="large-12 cell show-for-large">
    <ul class="dropdown menu" data-dropdown-menu>
    <li class="has-submenu is-down-arrow top-list">
    <a href="#"><?php echo TEXT_NAVBAR_CATEGORIES; ?></a>
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_categories_tabs.php'); ?>
    </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
    </li>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
    </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
    </li>
    <?php }
    } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
    </li>
    <li class="top-list">
    <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
    </li>
    <?php } ?>
    </ul>
    </div>
    </div>
    </div>
    </header>
    <?php } ?>
    I left header file up with the code you gave me in-case you wanted to look...

  5. #25
    Join Date
    Aug 2008
    Location
    MEDFORD OREGON
    Posts
    17
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart

    Quote Originally Posted by michaelpattisr View Post
    i left header file up with the code you gave me in-case you wanted to look...
    thanks again

  6. #26
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,843
    Plugin Contributions
    11

    Default Re: Foundation Theme for ZenCart

    you are now getting a blank page... which most likely indicates a problem with the code....

    review:

    https://www.zen-cart.com/content.php?124-blank-page

    most importantly, look for the log files.... log files are your friend and will indicate what the problems may be...

    post the contents of any log files.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #27
    Join Date
    Aug 2008
    Location
    MEDFORD OREGON
    Posts
    17
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart

    here is the two log errors.

    I don't see the ',' in the code..???


    [07-Jan-2018 15:16:13 America/Detroit] PHP Parse error: syntax error, unexpected ',' in /home/realsign/public_html/includes/templates/FZCF7211/common/tpl_header.php on line 41


    PHP Parse error: syntax error, unexpected ',' in /home/realsign/public_html/includes/templates/FZCF7211/common/tpl_header.php on line 41

  8. #28
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,843
    Plugin Contributions
    11

    Default Re: Foundation Theme for ZenCart

    michael,
    it looks like a small mistake in my code. i'm trying to the class into the zen_image function and i have an extra comma after HEADER_ALT_TEXT.

    in my post above:

    https://www.zen-cart.com/showthread....68#post1340068

    the line should be:

    PHP Code:
    <?php 
    echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE,  $current_page_base'images') . '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT' '' ''class="large-logo"') . '</a>'?>
    on line 41, the class="small-logo"

    (please copy the code all as one line!)

    my apologies.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #29
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Foundation Theme for ZenCart

    Hi Rick
    Did you resolve the categories button problem?
    For the categories menu to work on larger screens you need the 'categories tabs menu on/off' option set to 1 in the admin layout settings menu (near the bottom).
    Worked for me anyway
    Trev

  10. #30
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Foundation Theme for ZenCart

    Quote Originally Posted by cheddars View Post
    Hi Rick
    Did you resolve the categories button problem?
    For the categories menu to work on larger screens you need the 'categories tabs menu on/off' option set to 1 in the admin layout settings menu (near the bottom).
    Worked for me anyway
    Trev
    No, I did not but since I am not a coder, I know better than to start mucking around in the code where I have no business.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 28 Jun 2011, 04:50 PM
  2. Mobile theme for zencart?
    By matteoraggi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Jan 2011, 10:30 PM
  3. remove Free ZenCart jQuery Theme
    By lieven23 in forum Addon Templates
    Replies: 11
    Last Post: 22 May 2009, 03:32 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