Zen Follower
- Join Date:
- Aug 2009
- Location:
- Carmi, IL
- Posts:
- 354
- Plugin Contributions:
- 0
redirect landing page
How can I redirect the header logo to a ezpage or product link? Where do I do this?
Thanks
Zen Cart user all the way for online stores!
Views: 1,955
Zen Follower
How can I redirect the header logo to a ezpage or product link? Where do I do this?
Thanks
Zen Cart user all the way for online stores!
Totally Zenned
You will need to override the following contents of the file /includes/templates/template_default/common/tpl_header.php
<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
```If you are redirecting to an EZ page, you will have something like this:
```php
<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'index.php?main_page=page&id=6' . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
```If you are redirecting to a product page, you will have something like this:
```php
<?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_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_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
Zen Follower
Thank you so very much. Very helpful information. I appreciate your help with this.
Pkat
Zen Cart user all the way for online stores!
Tell staff why this post should be reviewed.