Post by Naheed » Mon Oct 26, 2020 7:50 pm

Please guide me about adding more fields in contact us form.
Thank you

User avatar
New member

Posts

Joined
Mon Aug 10, 2020 11:19 pm

Post by DigitCart » Mon Oct 26, 2020 8:05 pm

Hi

catalog/controller/information/contact.php
catalog/language/en-gb/information/contact.php
catalog/view/theme/default or your theme/template/information/contact.twig

You can learn from an existing field. For example clone the "name" field, Rename it to what you want and finally add it to
$mail->setText(...);
If you are a coder, You can do it by looking at these files.

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by khnaz35 » Mon Oct 26, 2020 8:06 pm

Oc version? Any theme installed?

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Naheed » Mon Oct 26, 2020 8:36 pm

Thanks for your reply.
I will try that and will let you know soon.
Thanks again @DigitCart.

User avatar
New member

Posts

Joined
Mon Aug 10, 2020 11:19 pm

Post by Naheed » Mon Oct 26, 2020 8:42 pm

khnaz35 wrote:
Mon Oct 26, 2020 8:06 pm
Oc version? Any theme installed?
Hello @khnaz35,
Thanks for your kind reply.
I am using Open Cart version 2

User avatar
New member

Posts

Joined
Mon Aug 10, 2020 11:19 pm

Post by khnaz35 » Mon Oct 26, 2020 10:34 pm

You are welcome,
Kindly update us once you have made changes.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by rhondachurchill99 » Wed Nov 04, 2020 8:07 pm

Hi Naheed, i think following post can be really helpful for you.
https://www.opencart.com/index.php?rout ... n_id=33211


Posts

Joined
Wed Nov 04, 2020 7:55 pm

Post by Naheed » Wed Nov 11, 2020 10:44 pm

@rhondachurchill99,
Thanks for your reply.
I will let you know after trying the extension.

User avatar
New member

Posts

Joined
Mon Aug 10, 2020 11:19 pm
Who is online

Users browsing this forum: No registered users and 16 guests