Post by GloryDays » Thu Nov 04, 2010 2:57 am

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?

Newbie

Posts

Joined
Thu Nov 04, 2010 2:53 am

Post by JAY6390 » Thu Nov 04, 2010 3:06 am

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by mystifier » Thu Nov 04, 2010 3:12 am

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:

Code: Select all

<a href="http://YourUrl"
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.

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by GloryDays » Thu Nov 04, 2010 3:15 am

Thanks. Worked as expected. Used the initial solution.

Newbie

Posts

Joined
Thu Nov 04, 2010 2:53 am

Post by GloryDays » Thu Nov 04, 2010 4:14 am

Another contact link found.

"Please direct any questions you have to the <contact link>store owner</link>."

Where would that one be?

Newbie

Posts

Joined
Thu Nov 04, 2010 2:53 am

Post by JAY6390 » Thu Nov 04, 2010 4:36 am

What page is it on ?

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Newbie

Posts

Joined
Thu Nov 04, 2010 2:53 am

Post by JAY6390 » Thu Nov 04, 2010 4:44 am

Then it will be /catalog/controller/checkout/success.php

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by GloryDays » Thu Nov 04, 2010 4:59 am

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)

Newbie

Posts

Joined
Thu Nov 04, 2010 2:53 am

Post by Johnathan » Thu Nov 04, 2010 5:06 am

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.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: Google [Bot] and 94 guests