A
A
Alexander AS2019-07-04 00:30:13
opencart
Alexander AS, 2019-07-04 00:30:13

Why email is not displayed on the contact page - v 2.3.0.2 "Russian assembly"?

Good time of the day!
I need to display the email on the contact page, but nothing happens.
I read that the contact page already uses the email variable for the form, and for this, if you need to display your mail, then you should create your own variable.
Created a variable in the contact.php file

$data['email_2'] = $this->config->get('config_email');

and in contact.tpl I display it: <?php echo $email_2; ?>
As a result, I get an error on the page:
Notice: Undefined variable: email_2 in W:\domains\asila.loc\catalog\view\theme\asila\template\information\contact.tpl on line 14

I tried to use other variable names, displayed it on other pages and everything works, the only exception is on the contact page.
Please tell me how to be?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2019-07-04
@zoozag

Discard modifier cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question