Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 58
  1. #31
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Yes, I have installed firebug and will be using it in future!

    Well, I guess the last thing I need to do is lose the external html files I have in my root folder and point the site URL to the Zen Cart homepage with the slider.

    I'm aware I have gone about this the wrong way from the start. I should have put Zen Cart in the root folder and worked on that from the off.

    So...If I delete the external stuff, can I just point the url www.zentest.net in this case, to the home page in my ZC (which is an EZ page)?

    Just wanted to check before I start deleting stuff and ruin the good work up until now.

    Hope the above makes sense, please let me know if any more info is required.

  2. #32
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bringing page with JQuery intoZen Cart

    The usual answer to that question is this: https://www.zen-cart.com/tutorials/i...hp?article=122
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #33
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Great

    Zen Cart is now sitting in my root folder.

    Site

    Kinda confused with the links though. Is there a simple way to point the 'home' link to the url? At the moment it points to a new store page, but then if you click the 'store' button in the header, it takes you to the proper store page I have been working on.

  4. #34
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bringing page with JQuery intoZen Cart

    I'm confused by your choice of words.

    I'm guessing you're asking whether it's possible to set an EZ-Page as the Home Page? If so, the answer is: that's not a built-in selectable option at the present time.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #35
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Sorry, yes you guessed right: I wanted to use the EZ page as the home page. That would explain why Kim passed by on my other post asking why I was using an EZ page then!

    Hmm. So if that's the case, would there be another way to achieve the effect I want i.e. the slider as the home page with a link to the store?

  6. #36
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bringing page with JQuery intoZen Cart

    Try this override code.

    Create and upload 2 new files, exactly as shown below:

    1. /includes/init_includes/init_ezpage_as_home_page.php
    Code:
    <?php
    /**
     * ezpage_as_home_page
     *
     * @package initSystem
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: init_ezpage_as_home_page.php 2010-08-31 14:45:33Z drbyte $
     */
    if (! defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    
    if ($this_is_home_page)
    {
      // SET THE DESIRED EZ-PAGE NUMBER HERE:
      $_GET['id'] = 20;
    
      // DO NOT TOUCH BELOW:
      $_GET['main_page'] = 'page';
      $current_page_base = 'page';
      $code_page_directory = 'includes/modules/pages/page';
    }
    2. /includes/auto_loaders/config.ezpage_as_home_page.php
    Code:
    <?php
    /**
     * autoloader activation point for ezpage override
     *
     * @package initSystem
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: config.ezpage_as_home_page.php 2010-08-31 14:25:33Z drbyte $
     */
    if (!defined('IS_ADMIN_FLAG')) {
     die('Illegal Access');
    }
    /**
     * point 190 was selected based on dependencies
     */
      $autoLoadConfig[190][] = array('autoType'=>'init_script',
                                     'loadFile'=> 'init_ezpage_as_home_page.php');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #37
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Wow that's fantastic!

    Didn't think it could be done but it works perfect.

    Thanks very much for your support DrByte. It's been a massive help.


    I owe you a beer!

  8. #38
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bringing page with JQuery intoZen Cart

    I wish you well. If I'm in London sometime I'll look you up. ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #39
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Nice one


  10. #40
    Join Date
    Jul 2010
    Location
    London, England
    Posts
    58
    Plugin Contributions
    0

    Default Re: Bringing page with JQuery intoZen Cart

    Spent a few hours today trying to figure out a couple things. I think I'm getting close with one but not there yet.

    1) Would like to have the header logo point to the 'home' page and not the store. I have read up and believe I need to add tpl_header.php to my custom folder (which I've done). I've hacked around and inserted the url in various places in the file but it still points to the store. Could someone say where and what edits I need to make please?

    PHP 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"><?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) . '</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 ?>
    2) Is it possible to move the 'Store' link in the footer of the site along so it runs in the same order as the header links? i.e. 'home' 'about' 'store' etc

    Thanks for your help

 

 
Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Integrate Amazon Store Into Ezy Page?
    By silentavatar in forum General Questions
    Replies: 8
    Last Post: 24 Mar 2011, 09:58 PM
  2. Error bringing up the admin page
    By ChrisW97 in forum General Questions
    Replies: 2
    Last Post: 22 Apr 2010, 02:34 PM
  3. Bringing Recent Forum / Blog Posts Into My ZC?
    By taogem in forum General Questions
    Replies: 3
    Last Post: 15 Sep 2008, 07:41 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