Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default How to directly link to defined pages?

    What html php do I need to use to directly link to a defined pages in my template?

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: How to directly link to defined pages?

    I may be misunderstanding your question, but set up the page you need, find the link in your information/more information/wherever you're displaying it sidebox and right click>copy link information (or your browser equivalent)
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    I am making a general template for everyone.

    So I need a general php link I can put in the header that will call up defined pages.

    So I don't need it to be specific to my domain but a php/zencart variable

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    If you set up a site and mouseover the links I think you will begin to see the pattern of their naming.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    Yeah but that shows the links for the specific domain. I am looking to make a general template that will grab the site domain from the langugage files

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: How to directly link to defined pages?

    Ok, take a look at includes/modules/sideboxes/more_information.php
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  7. #7
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    I tried linking list this but it did not work

    Code:
    <li><a href="<?php echo zen_href_link('shippinginfo')?>">Shipping & Returns</a></li>
    What am I doing wrong?

  8. #8
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: How to directly link to defined pages?

    Quote Originally Posted by bjraines View Post
    I tried linking list this but it did not work

    Code:
    <li><a href="<?php echo zen_href_link('shippinginfo')?>">Shipping & Returns</a></li>
    What am I doing wrong?
    Try
    Code:
    zen_href_link(FILENAME_SHIPPING)
    and filenames are defined in includes/filenames.php
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  9. #9
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    so you can't call them directly by their filename....like minus the .php

  10. #10
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: How to directly link to defined pages?

    That didn't work either here is the code I am presenting in tpl_header. I am using version 1.3.6

    Thanks!

    My direct links to define pages are not working. The last link I tried the old way and way suggested above.


    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 3392 2006-04-08 15:17:37Z birdbrain $
     */
    ?>
    
    <?php
      // Template designed by www.zen4me.com (c) 2006
      //
      // 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">
    
      
    
    
    
    <table style="text-align: left; width: 750px;" 
     >
      <tbody>
        <tr>
          <td colspan="3" rowspan="1" style="width: 124px;"><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></td>
        </tr>
        <tr>
          <td style="width: 430px;"><img  alt="personalized gifts and 
    
    custom monogramming" src="<?php echo 
    
    DIR_WS_TEMPLATE_IMAGES?>logo.png"></td>
          <td style="width: 160px; vertical-align: bottom;"><ul>
    	<li><a href="<?php echo zen_href_link('privacy')?>">Privacy 
    
    Notice</a></li>
    	<li><a href="<?php echo 
    
    zen_href_link('conditions')?>">Condition of Use</a></li>
    	<li><a href="<?php echo 
    
    zen_href_link('shippinginfo')?>">Shipping & Returns</a></li>
    	<li><a href="<?php echo 
    
    zen_href_link('contact_us')?>">Contact Us</a></li>
    	<li><a href="<?php echo zen_href_link('site_map')?>">Site 
    
    Map</a></li>
    
    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING)?>">Shipping 
    
    & Returns</a></li>
    
    
    	</ul>
    
          </td>
          <td style="width: 160px; vertical-align: top;"><a href="<?php 
    
    echo zen_href_link('shopping_cart')?>"><img src="<?php echo 
    
    DIR_WS_TEMPLATE_IMAGES?>cart.gif" ></a></div>
    	<br /><?php
        if (SHOW_TOTALS_IN_CART == '1') {
          echo '<strong>' . $_SESSION['cart']->count_contents() . 
    
    '&nbsp;' . 'items</strong>' . '&nbsp;' . 'in your cart' . '<br />' . 
    
    $currencies->format($_SESSION['cart']->show_total());
        } ?>	</td>
        </tr>
      </tbody>
    </table>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <table class="zmhb01" width="750" border="0" cellspacing="0" 
    
    cellpadding="0">
      <tr>
        <td width="175" valign="bottom">
    	<strong>Find:</strong>
    	<?php echo 
    
    zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT)?> 
    	<?php echo zen_draw_hidden_field('search_in_description', 
    
    '1')?> 
    	<?php echo zen_draw_input_field('keyword')?><input name="" 
    
    type="hidden">
    	</td>
        <td width="198" align="left" valign="bottom">
    	<strong>Currencies:</strong>
    	<?php echo zen_draw_form('currencies', 
    
    zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', 
    
    $request_type, false), 'get')?>
    	<?php reset($currencies->currencies);
        $currencies_array = array();
        while (list($key, $value) = each($currencies->currencies)) {
          $currencies_array[] = array('id' => $key, 'text' => 
    
    $value['title']);
        }
    
        $hidden_get_variables = '';
        // reset($HTTP_GET_VARS);
        //while (list($key, $value) = each($HTTP_GET_VARS)) {
          if ( ($key != 'currency') && ($key != zen_session_name()) && 
    
    ($key != 'x') && ($key != 'y') ) {
            $hidden_get_variables .= zen_draw_hidden_field($key, $value);
          }
        //}
    
        echo zen_draw_pull_down_menu('currency', $currencies_array, 
    
    $_SESSION['currency'], 'onchange="this.form.submit();" class=select') 
    
    . $hidden_get_variables . zen_hide_session_id()?>
    	</form> 	</td>
        <td width="377">
    	<div class="zmhb07">
    	<ul>
    	<li><a href="<?php echo 
    
    zen_href_link('featured_products')?>">Featured</a></li>
    	<li><a href="<?php echo 
    
    zen_href_link('specials')?>">Specials</a></li>
    	<li><a href="<?php echo 
    
    zen_href_link('products_new')?>">New</a></li>
    	<li><a href="<?php echo zen_href_link('products_all')?>">All 
    
    Products</a></li>
    	</ul>
    	</div>
    	</td>
    	</tr>
    </table>
    
    
    
    </div>
    
    
    <?php } ?>

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h how to remove breadcrumb from ez-pages and defined pages
    By snk060 in forum General Questions
    Replies: 3
    Last Post: 11 Nov 2013, 04:40 PM
  2. link to special model directly?
    By bahaa87 in forum Addon Templates
    Replies: 6
    Last Post: 1 Jul 2011, 05:50 PM
  3. How to add link to defined page to Information sidebox
    By bsteinagel in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Aug 2008, 07:11 AM
  4. How do I add defined pages?
    By bjraines in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Sep 2006, 07:16 AM
  5. how to add pages and link them to previous pages?
    By jmdav2000 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Sep 2006, 09:44 AM

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