Post by ayazahmad1 » Thu Jan 19, 2017 1:57 am

Hi,
I am new to opencart and want a solution for this error:

<b>Notice</b>: Undefined variable: phone in <b>/home/gwbpsuxl/public_html/catalog/view/theme/default/template/information/contact.tpl</b> on line <b>127</b>

I got this error after adding Phone option in Contact Us form.

Newbie

Posts

Joined
Thu Jan 19, 2017 1:09 am

Post by imdevlper18 » Thu Jan 19, 2017 12:57 pm

Hello Ayaz,

Opencart is MVC architecture.
So you need to define phone in below file as well:
catalog/controller/information/contact.php

So you need to have little php knowledge as well.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member
Online

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by ayazahmad1 » Sat Jan 21, 2017 7:29 pm

imdevlper18 wrote:Hello Ayaz,

Opencart is MVC architecture.
So you need to define phone in below file as well:
catalog/controller/information/contact.php

So you need to have little php knowledge as well.
Its working after putting phone code twice in php file..

Thanks a lot dear

Newbie

Posts

Joined
Thu Jan 19, 2017 1:09 am
Who is online

Users browsing this forum: No registered users and 34 guests