Author Topic: Contact Us Form on v.1.4.1  (Read 37406 times)

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #15 on: April 11, 2025, 03:46:41 AM »
Can you provide access to your admin side via private message?

check you inbox plz

try to replace your files with this
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/storefront/controller/pages/content/contact.php
and
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/core/engine/form.php

and let us know


i replaced those files and after testing the contact us form i got these error log: and when submitting the form i got next screen as you can see in my screenshot

ERROR LOG:
2025-04-11 6:59:47 - Unknown Error: AbanteCart core v.1.4.1 Call to undefined method ALanguage::getAndReplace()
Trace:
#0 /home/core/engine/dispatcher.php(306): ControllerPagesContentContact->main()
#1 /home/core/engine/dispatcher.php(341): ADispatcher->dispatch()
#2 /home/core/engine/page.php(108): ADispatcher->dispatch()
#3 /home/core/engine/router.php(204): APage->build()
#4 /home/core/engine/router.php(86): ARouter->route()
#5 /home/index.php(101): ARouter->processRoute()
#6 {main} in /home/storefront/controller/pages/content/contact.php on line 50

oh, sorry, forgot this file
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/core/engine/language.php#L184
Please replace too
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #16 on: April 11, 2025, 04:12:25 AM »
Can you provide access to your admin side via private message?

check you inbox plz

try to replace your files with this
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/storefront/controller/pages/content/contact.php
and
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/core/engine/form.php

and let us know


i replaced those files and after testing the contact us form i got these error log: and when submitting the form i got next screen as you can see in my screenshot

ERROR LOG:
2025-04-11 6:59:47 - Unknown Error: AbanteCart core v.1.4.1 Call to undefined method ALanguage::getAndReplace()
Trace:
#0 /home/core/engine/dispatcher.php(306): ControllerPagesContentContact->main()
#1 /home/core/engine/dispatcher.php(341): ADispatcher->dispatch()
#2 /home/core/engine/page.php(108): ADispatcher->dispatch()
#3 /home/core/engine/router.php(204): APage->build()
#4 /home/core/engine/router.php(86): ARouter->route()
#5 /home/index.php(101): ARouter->processRoute()
#6 {main} in /home/storefront/controller/pages/content/contact.php on line 50

oh, sorry, forgot this file
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/core/engine/language.php#L184
Please replace too



i replaced the required file and tested again the form and just on screen got a notification that the (Your inquiry has been successfully sent to the store owner!) but nothing arrived no on admin no on email and no error logs at all.
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #17 on: April 11, 2025, 05:23:45 AM »
Looks like trouble in gmail that you use as mailer.
Can you try to set your sender email (abcotex.llc@***.com) as store email (instead info@***.com) ?
Looks like google don't like when sender email address not equal real sender account
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #18 on: April 11, 2025, 07:55:01 AM »
Looks like trouble in gmail that you use as mailer.
Can you try to set your sender email (abcotex.llc@***.com) as store email (instead info@***.com) ?
Looks like google don't like when sender email address not equal real sender account


after replacing the files codes you advised i found that the form is working but all emails forms appearing only in the sender (sent box) only and not appearing in the inbox or admin messages notifications as also it is printing all form's fields even the CAPTCHA code too, as also the required and not required fields. 
« Last Edit: April 11, 2025, 09:05:22 AM by G. O. »
Thank you...
G.O.

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #19 on: April 11, 2025, 09:59:44 AM »
i just discovered that there is an option should be activated for getting notification on admin dashboard for the contact us form enquiry details.  still i need to know how to push the form enquiry to arrive to email inbox and without the unnecessary fields as well as the CAPTCHA and Google reCAPTCHA codes.
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #20 on: April 11, 2025, 10:13:00 AM »
Looks like trouble in gmail that you use as mailer.
Can you try to set your sender email (abcotex.llc@***.com) as store email (instead info@***.com) ?
Looks like google don't like when sender email address not equal real sender account


after replacing the files codes you advised i found that the form is working but all emails forms appearing only in the sender (sent box) only and not appearing in the inbox or admin messages notifications as also it is printing all form's fields the required and not required fields.

1. Try to create and send new email from you to yourself (email loop) via email page (gmail etc) and let us know if you got this email in the inbox.

2. Regarding uploaded files. There are two limitations, first in on php.ini side. see post_max_size, upload_max_size.
So if you plan to receive files via contactUs form you should to test with some small images and then increase values of php-directives.
Second limitation related to mailer. Usually mail server do not send emails greater than 7Mb.

Regarding other data.
I'll test this part of code a bit later and let you know
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #21 on: April 11, 2025, 10:30:53 AM »
Looks like trouble in gmail that you use as mailer.
Can you try to set your sender email (abcotex.llc@***.com) as store email (instead info@***.com) ?
Looks like google don't like when sender email address not equal real sender account


after replacing the files codes you advised i found that the form is working but all emails forms appearing only in the sender (sent box) only and not appearing in the inbox or admin messages notifications as also it is printing all form's fields the required and not required fields.

1. Try to create and send new email from you to yourself (email loop) via email page (gmail etc) and let us know if you got this email in the inbox.

2. Regarding uploaded files. There are two limitations, first in on php.ini side. see post_max_size, upload_max_size.
So if you plan to receive files via contactUs form you should to test with some small images and then increase values of php-directives.
Second limitation related to mailer. Usually mail server do not send emails greater than 7Mb.

Regarding other data.
I'll test this part of code a bit later and let you know

yes, i can confirm that i got the email in my inbox as you can see in my attachment
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #22 on: April 11, 2025, 11:42:56 AM »
yes, i can confirm that i got the email in my inbox as you can see in my attachment

check spam on mailbox side.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #23 on: April 11, 2025, 12:09:27 PM »
i just discovered that there is an option should be activated for getting notification on admin dashboard for the contact us form enquiry details.  still i need to know how to push the form enquiry to arrive to email inbox and without the unnecessary fields as well as the CAPTCHA and Google reCAPTCHA codes.

Fix with captcha here
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/core/engine/form.php
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/storefront/controller/pages/content/contact.php
Just replace files.
Regarding uploaded files. You should find them in admin->system->data->file uploads.

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #24 on: April 11, 2025, 02:17:41 PM »
i just discovered that there is an option should be activated for getting notification on admin dashboard for the contact us form enquiry details.  still i need to know how to push the form enquiry to arrive to email inbox and without the unnecessary fields as well as the CAPTCHA and Google reCAPTCHA codes.

Fix with captcha here
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/core/engine/form.php
https://github.com/abantecart/abantecart-src/blob/1.4.2/public_html/storefront/controller/pages/content/contact.php
Just replace files.
Regarding uploaded files. You should find them in admin->system->data->file uploads.


according to your recommendation i did replaced the files with the new ones and the results as you see in the screenshot but i should say that the contact us form fulfilled as usual but in the result only showing the enquiry message without name surname, gender, etc...

spam is empty

still emails appearing in sent box as before.
« Last Edit: April 11, 2025, 02:19:54 PM by G. O. »
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #25 on: April 12, 2025, 09:35:22 AM »
Your contactUs form works as expected.
I created new customer, changed store email to mine
and i got this email to another mailbox address.
See screenshot

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #26 on: April 12, 2025, 10:24:17 AM »
Your contactUs form works as expected.
I created new customer, changed store email to mine
and i got this email to another mailbox address.
See screenshot

according to your answer I placed the store email as (abcotex.llc@***.com). ContactUsFrm emails now arriving to inbox of Gmail mentioned in the website store email but I don't know how you got that screenshot result but i just tested the form again and as i said in the previous answer that only (Enquiry) appearing in the email and admin side notification message.  can you try to submit the contact us form now and give it a try please?
Thank you...
G.O.

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #27 on: April 12, 2025, 02:35:18 PM »
Your contactUs form works as expected.
I created new customer, changed store email to mine
and i got this email to another mailbox address.
See screenshot

 i see that you tried the form and here in the screenshot pics the results i got.
Thank you...
G.O.

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #28 on: April 12, 2025, 06:06:50 PM »
the final solution i did followed as next:

I placed my Gmail email in the extension of forms then store email and activated the Google reCAPTCHA v3 and in the form settings i did as you can see in the screenshot pics and form working fine and emails arriving to my Gmail inbox with all details in the form but the only problems i have now is on admin dashboard there is no notification message telling me there is an enquiry and in the arrival email to my inbox the sender of form's name doesn't appearing in the details, also the sender of orders receiving an email not as a sender of orders but as a web store owner which says You have received an order. I think we are very near to solve these small issues.   
« Last Edit: April 13, 2025, 03:57:48 AM by G. O. »
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #29 on: April 13, 2025, 08:35:56 AM »
try to remove all messages. i guess nofitication depends on repeating
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod