Page 1 of 1
Contact Us as External Link
Posted: Thu Nov 04, 2010 2:57 am
by GloryDays
I want the contact us link to go to an external (as far as the application is concerned) link. What needs to be changed to make this possible?
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 3:06 am
by JAY6390
Two places you'll need to change it. The first is
$this->data['contact'] = HTTP_SERVER . 'index.php?route=information/contact';
in /catalog/controller/module/information.php
to change the one in the information box
The second is
$this->data['contact'] = HTTP_SERVER . 'index.php?route=information/contact';
in /catalog/controller/common/header.php
to change the one in the header
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 3:12 am
by mystifier
In the template files:
catalog/view/theme/default/template/common/header.tpl
catalog/view/theme/default/template/module/information.tpl
You can change:
Code: Select all
<a href="<?php echo str_replace('&', '&', $contact); ?>"
to:
If you use a custom template with new versions of these files, you should change those and leave the default ones alone.
Edit: Crossed posts. Both are fine but change at different levels.
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 3:15 am
by GloryDays
Thanks. Worked as expected. Used the initial solution.
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 4:14 am
by GloryDays
Another contact link found.
"Please direct any questions you have to the <contact link>store owner</link>."
Where would that one be?
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 4:36 am
by JAY6390
What page is it on ?
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 4:40 am
by GloryDays
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 4:44 am
by JAY6390
Then it will be /catalog/controller/checkout/success.php
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 4:59 am
by GloryDays
Found on the following line of /catalog/controller/checkout/success.php:
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_message'), HTTPS_SERVER . 'index.php?route=account/account', HTTPS_SERVER . 'index.php?route=account/history', HTTP_SERVER . 'index.php?route=information/contact');
Thanks. (Showing code for people searching in future)
Re: Contact Us as External Link
Posted: Thu Nov 04, 2010 5:06 am
by Johnathan
Changing the links in the template is preferable, in my opinion, since you won't have problems if you upgrade your installation in the future. If you modify the controller files, you'll need to remember to make the same changes every time you upgrade. Just my 2 cents.