Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Location
    Carmi, IL
    Posts
    354
    Plugin Contributions
    0

    Default redirect landing page

    How can I redirect the header logo to a ezpage or product link? Where do I do this?

    Thanks

  2. #2
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: redirect landing page

    You will need to override the following contents of the file /includes/templates/template_default/common/tpl_header.php

    PHP Code:
    <?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>'?>
    If you are redirecting to an EZ page, you will have something like this:

    PHP Code:
    <?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG 'index.php?main_page=page&id=6' '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?>
    If you are redirecting to a product page, you will have something like this:

    PHP Code:
    <?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG 'index.php?main_page=product_info&cPath=50_46&products_id=94' '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?>
    You will need to adjust the above code to suit your particular ez page id or category/product id.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  3. #3
    Join Date
    Aug 2009
    Location
    Carmi, IL
    Posts
    354
    Plugin Contributions
    0

    Default Re: redirect landing page

    Thank you so very much. Very helpful information. I appreciate your help with this.

    Pkat

 

 

Similar Threads

  1. v154 Main Category Page that looks like a landing page
    By CabinetGuy in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Jun 2016, 05:43 PM
  2. Replies: 4
    Last Post: 22 Jul 2011, 10:27 PM
  3. How to redirect a pseudo-static page using a 301 redirect ?
    By anahong in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2010, 02:37 PM
  4. Can I embed the Contact Us page on my landing page?
    By cmrsf1 in forum General Questions
    Replies: 0
    Last Post: 19 Apr 2010, 07:28 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