Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default integrating into rest of site

    hi, im adding a zencart to my site, and i want to have to the same header/menu on the zencart section as on the rest of the site.

    im using a .swf file as the header/menu and i've embedded it into the other 4 pages on the site, but when i try to embedd it at the top of the index page for zencart, the site loses its functionality and i get displays warning me of errors.

    how can i go about adding my header/menu to my store? here is my URL: www.sheisme.org

    the store is at
    www.sheisme.org/consume

    thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: integrating into rest of site

    Why don't you just match the cart to your existing site then you will not need the old static pages??

    Flash:
    https://www.zen-cart.com/tutorials/i...hp?article=156
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: integrating into rest of site

    the tutorial you sent me the link to informs me that i should place my swf file in the template folder.

    where abouts should i place the following code?

    <object type="application/x-shockwave-flash" data="includes/templates/XXX/UUU/ZZZ.swf" width="100%" height="100">
    <param name="movie" value="includes/templates/XXX/UUU/ZZZ.swf" />
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <param name="menu" value="false">
    </object>

    i tried placing this at the top of the index.php file in the root folder and zencart stopped working, although the .swf file was displayed at the top of the file in the browser.

    so ill put the swf in my templates folder, but where does the code go?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: integrating into rest of site

    The Link also referenced 3 other threads did you look at them?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: integrating into rest of site

    yes i did check them out and my current understanding plus the info in those threads did not add up to progress. they are mostly about the javascript that takes care of flash being viewed in IE.

    if i could be told where to place that bit of code (which file, and where on the file), it would really make my day.

    thx

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: integrating into rest of site

    The following is what/how this was integrated into a site I worked on recently and might be close to what you need but I recall that there were some things reordered in the file....

    The file is a copy of includes/templates/template_default/common/tpl_header.php that you make a copy of and place it into your template file structure - don't forget the .js required and referenced in the links that I posted
    Code:
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <div id="headerWrapper">
    
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    		<div id="flashcontent">    
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"        
            <param name="movie" value="header.swf">
            <param name="bgcolor" value="#FFFFFF">
            <param name="quality" value="high">
            <param name="wmode" value="transparent">
            <param name="allowscriptaccess" value="samedomain">
    
            <embed
              type="application/x-shockwave-flash"
              pluginspage="http://www.macromedia.com/go/getflashplayer"
              name="flashcontent"
              width="600" height="104"
              src="includes/templates/your_template/images/header.swf"
              bgcolor="#FFFFFF"
              quality="high"
              wmode="transparent"
              swliveconnect="true"
              allowscriptaccess="samedomain"
              <noembed>
              </noembed>
            </embed></object>
        </div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: integrating into rest of site

    thx
    so i modified my tpl_header.php file to look like this:





    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    <param name="movie" value="menu.swf">
    <param name="bgcolor" value="#FFFFFF">
    <param name="quality" value="high">
    <param name="wmode" value="transparent">
    <param name="allowscriptaccess" value="samedomain">

    <embed
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    name="flashcontent"
    width="800" height="260"
    src="menu.swf"
    bgcolor="#FFFFFF"
    quality="high"
    wmode="transparent"
    swliveconnect="true"
    allowscriptaccess="samedomain"
    <noembed>
    </noembed>
    </embed></object>



    <?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-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: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
    */
    ?>

    <?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 htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><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><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><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->

    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>


    i placed the menu.swf file in the same folder as the tpl_header.php and now on the site im getting a blank grey box where i want the .swf to be.

    i tried changing the tpl_header.php to the chunk of code you sent me and the entire site became black. so i just added the embed code to the tpl_header.php file and it seems like that is progress as im getting the blank box where the .sef should be.

    please tell me what my next step should be. thank you

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: integrating into rest of site

    The code Kobra posted is only a small part of tpl_header.php. If you replaced your whole file with it, of course it would crash.

    The embed code as you show it is in the wrong place - the messageStack alerts that appear above the top of your page when necessary need to come first, as do the container divs for headerWrapper etc.

    You should probably do as Kobra did and put the embed code in this section:

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo">

    That's all the advice I can give you as I don't use flash.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: integrating into rest of site

    As gjh42 stated what I posted is only the part that you should find in your file and replace what is there - just tacking on at the beginning is not how this was meant to be used
    i placed the menu.swf file in the same folder as the tpl_header.php
    This should be in the /images folder in your template not the /common folder
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Jan 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: integrating into rest of site

    thx, its now obvious to me that replacing the whole file with that code is wrong.

    i moved the embed code into the
    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo">

    section, and that seems to be only an aethetic difference. im still getting a grey box that is the dimensions of the swf file in place of the swf file. its just in a different place on the page. if the tpl_header.php file was only html (no php) im sure it would display the .swf file, but tpl_header.php not recognizing menu.swf for some reason. here is what my code now looks like: and here is my URL: www.sheisme.org/consume





    Code:
    <?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-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: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
     */
    ?>
    
    <?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 htmlspecialchars(urldecode($_GET['error_message']));
      }
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
       echo htmlspecialchars($_GET['info_message']);
    } else {
    
    }
    ?>
    
    
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    
    
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><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><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><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo">
    	
    	
    	
    	        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"        
            <param name="movie" value="menu.swf">
            <param name="bgcolor" value="#FFFFFF">
            <param name="quality" value="high">
            <param name="wmode" value="transparent">
            <param name="allowscriptaccess" value="samedomain">
    
            <embed
              type="application/x-shockwave-flash"
              pluginspage="http://www.macromedia.com/go/getflashplayer"
              name="flashcontent"
              width="800" height="260"
              src="menu.swf"
              bgcolor="#FFFFFF"
              quality="high"
              wmode="transparent"
              swliveconnect="true"
              allowscriptaccess="samedomain"
              <noembed>
              </noembed>
            </embed></object>
        
    	
    	
    	
    	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    
    <!--eof-header logo and navigation display-->
    
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v153 integrating cart into go daddy site
    By clford78 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 20 Oct 2014, 01:10 PM
  2. Integrating Into Existing Site
    By thebigman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 May 2011, 01:01 PM
  3. integrating Zen Cart into existing web site
    By mzimmers in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Apr 2009, 07:24 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