Results 1 to 10 of 321

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Rustic Template Support Thread

    Hello, I am using zencart 1.3.7 and I have a problem because I cannot add links to the navigation links in tpl_header, I can add but it does not look the same as the rest. you can see in www.dotari-saloane.ro the links "Catalog" is not the same as the rest .. Home etc... I did what the FAQ said here: https://www.zen-cart.com/tutorials/i...hp?article=234 and add after

    <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>

    This :

    <li><a href="http://www.dotari-saloane.ro/catalog.pdf" target="_blank">Catalog</a></li>
    </ul>

    But, as you can see, the result is not as I expected.

    Thanks!

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Rustic Template Support Thread

    Quote Originally Posted by minute View Post
    Hello, I am using zencart 1.3.7 and I have a problem because I cannot add links to the navigation links in tpl_header, I can add but it does not look the same as the rest. you can see in www.dotari-saloane.ro the links "Catalog" is not the same as the rest .. Home etc... I did what the FAQ said here: https://www.zen-cart.com/tutorials/i...hp?article=234 and add after

    <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>

    This :

    <li><a href="http://www.dotari-saloane.ro/catalog.pdf" target="_blank">Catalog</a></li>
    </ul>

    But, as you can see, the result is not as I expected.

    Thanks!
    You simply forgot the span tags

    try making the highlighted corrections

    <li><a href="http://www.dotari-saloane.ro/catalog.pdf" target="_blank"><span>Catalog</span></a></li>

  3. #3
    Join Date
    Dec 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Rustic Template Support Thread

    Thanks! It works!!! GREAT!!!! Thanks again!

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Rustic Template Support Thread

    Quote Originally Posted by minute View Post
    Thanks! It works!!! GREAT!!!! Thanks again!
    glad to help

  5. #5
    Join Date
    Dec 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Rustic Template Support Thread

    Hello, it is me again, I want to know if there is a posibiliti to hide some of the links in the tpl_header.php with some if statements. For example, if the user is not logged in, the link /index.php?main_page=account to be hide, and when is logged in to be shown, and also the cart link if there are no products in it. Thans for your help!

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Rustic Template Support Thread

    Quote Originally Posted by minute View Post
    Hello, it is me again, I want to know if there is a posibiliti to hide some of the links in the tpl_header.php with some if statements. For example, if the user is not logged in, the link /index.php?main_page=account to be hide, and when is logged in to be shown, and also the cart link if there are no products in it. Thans for your help!
    Sure:

    open includes/templates/rustic/common/tpl_header.php

    find the following section of code
    Code:
    <div id="navMain">
        <ul>
        <li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
    <?php } } ?>
    <li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : ' class="contact">');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
        <li<?php echo (($current_page_base == 'account') ? ' class="current">' : ' class="account">');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
    <?php }?>
        <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
    </ul>
    and replace it with the following:

    Code:
    <div id="navMain">
        <ul>
        <li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
        <li<?php echo (($current_page_base == 'account') ? ' class="current">' : ' class="account">');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
    <?php } } ?>
    <li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : ' class="contact">');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
        <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
    <?php }?>
    </ul>

  7. #7
    Join Date
    Dec 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Rustic Template Support Thread

    Works great! Millions of thanks!

 

 

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. TB Sempre Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 48
    Last Post: 19 Mar 2015, 06:33 PM
  4. Scuro Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 11
    Last Post: 12 Mar 2015, 09:45 PM
  5. DigitalShop Template Support Thread
    By blingthemes in forum Addon Templates
    Replies: 19
    Last Post: 9 Mar 2011, 07:49 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