osCmax v2.5 User Manual
Results 1 to 9 of 9

How to link to another domian using the TOP button?

This is a discussion on How to link to another domian using the TOP button? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; My store is at one domain and my website is at another how can I use the "Top" header button ...

      
  1. #1
    New Member
    Join Date
    Mar 2010
    Posts
    18
    Rep Power
    0


    Default How to link to another domian using the TOP button?

    My store is at one domain and my website is at another how can I use the "Top" header button to go to my website from the store?

    Thanks for your help!

  2. #2
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: How to link to another domian using the TOP button?

    fake it - put a link in front of the entire breadcrumb inside of your main_page.tpl.php and name it top. then go to application_top.php and block out the default top link.

  3. #3
    New Member
    Join Date
    Mar 2010
    Posts
    18
    Rep Power
    0


    Default Re: How to link to another domian using the TOP button?

    Hi thanks for you response. But Im pretty new at this, so where are you telling me to put the link on the main_page.tpl.php?

    </table>
    <table border="20%" width="100%" cellspacing="0" cellpadding="1">
    <tr class="headerNavigation">
    <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    <td align="right" class="headerNavigation">&nbsp;|&nbsp;
    <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers
    { ?>

    And then is this the link I should block out on the applicaton_top.php Do I just delete it?

    $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

    Thanks again for all you help.

  4. #4
    New Member
    Join Date
    Mar 2010
    Posts
    18
    Rep Power
    0


    Default Re: How to link to another domian using the TOP button?

    Thanks for your reply BlackHawk!

    Though I am a noobie and need some further clarification.

    Can you show me where to add the link on the main_page.tpl.php

    </tr>
    </table>
    <table border="20%" width="100%" cellspacing="0" cellpadding="1">
    <tr class="headerNavigation">
    <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    <td align="right" class="headerNavigation">&nbsp;|&nbsp;
    <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers
    { ?>

    Second question: Is this the line I should block out on the (I assume that means delete)
    application_top.php

    $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

    Thanks again for all your help!

  5. #5
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: How to link to another domian using the TOP button?

    Open up main_pagt.tpl.php and find this line...
    Code:
      <td class="breadcrumb">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    and change it to...

    Code:
    <td class="breadcrumb">&nbsp;&nbsp;<a href="http://www.yourstorelnk.com" target="_blank">Top</a>&nbsp;
    <?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    Then open up catalog/includes/application_top.php
    and find this line
    Code:
    $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
    $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
    and change it too
    Code:
    //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
      $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
    Then when you load your browser, your top link should be the custom link you want it to be.

    bh

  6. #6
    New Member
    Join Date
    Mar 2010
    Posts
    18
    Rep Power
    0


    Default Re: How to link to another domian using the TOP button?

    Thanks Blackhawk! I appreciate your help more than you know!

    I have a question thought is it possible to have the link (when clicking on top) open within the same window? Also, when I did this the button for the catalog has disappeared, the color that I had in the background and the font color and size changes also? Your help or any other help/suggestions is greatly appreciated.

    Thanks
    Rosanne

  7. #7
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: How to link to another domian using the TOP button?

    target="_top" -> Same Window
    target="_blank" -> New Window.

    For the stylesheet stuff - just install Firebug for Firefox and then look at the style you should be fixing.

    Regards,
    pgmarshall
    _______________________________

  8. #8
    New Member
    Join Date
    Mar 2010
    Posts
    18
    Rep Power
    0


    Default Re: How to link to another domian using the TOP button?

    @pgmarshall - Thanks so much for your help.......I got it to work.

    I still have the second part of my question though: when I did this the button for the catalog has disappeared, the color that I had in the background and the font color and size changes also? Your help or any other help/suggestions is greatly appreciated.

    Thanks again......Im learning.....but all your help is more than appreciated.

  9. #9
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: How to link to another domian using the TOP button?

    For the stylesheet stuff - just install Firebug for Firefox and then look at the style you should be fixing.
    Just do as above ... use the firebug explorer to examine the style that is misbehaving and fix it!

    Regards,
    pgmarshall
    _______________________________

Similar Threads

  1. Button Images Border and Link
    By Cisco in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 08-19-2007, 07:52 AM
  2. make link like "prod descriptin-buy now button" on another page
    By bobcast in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-11-2007, 05:59 AM
  3. Change the link on "Continue" button on checkout_s
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 05:10 PM
  4. remove button link at the bottom of checkout_success page
    By webwolfe in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 08-01-2005, 03:42 AM
  5. Change "continue" button link
    By mayhem in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-30-2004, 01:52 PM

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
  •