Thanks in advance for any help you can provide me!!!
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
In success.twig :
Find:
{{ text_message }}
Replace with:
{{ text_success }}
Now if someone could tell me why I'm getting the "From" line with our admin email address instead of the submitter's email address (and no 'reply to' line either), that would be great. Right now the completed form comes in and we don't have any address to reply to...
Incorrect. The success page is accessible directly from the browser which means it does not track the success message during the contact us event but only when loading the page. Replacing the code on the above would still show the success message but not from the current event - in this case the contact us page. Please confirm before posting the assumption that my necessary posted code is, according to you, unnecessary. These codes have been posted for a purpose and this purpose to resolve the issue during the event before refreshing the page as it should be since the OP did reported an issue when submitting the form from the contact us page. These corrections have also been confirmed by previous users they are working accordingly on the topic.In 3.0.2.0, the fix to restore the success message does not require the changes outlined above. It's easier.
As for the reply to address, the method is already instantiated from the catalog/controller/information/contact.php file. If the reply to address is not specified on your end from the email message after submitting the form, and since this issue is not about a major report by the forum users, then it is not an issue originating from Opencart in this case.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Same for the person who posted his request above mine just a few days ago.
Trust me, I wanted your solution to work for me, but it didn't.
So I reverted to the original files, saw the difference that I pointed out, tested it, and it worked -- the success message appeared on the page after contact submission when it had not before.
If the only time the "route=information/contact/success" page appears is when a person submits the contact form (is that correct?), then it is a solution. And it's easy to implement.
As to your reply about the 'from' email address not showing for me: where might the reply-to address be specified on my end?
I didn't alter the setup of the contact form system for 3.0.2.0, it's simply an issue I'm finding...
How can such analysis be trusted at this point when two other users are mentioning that the modifications do work?Same for the person who posted his request above mine just a few days ago.
Trust me, I wanted your solution to work for me, but it didn't.
viewtopic.php?f=201&t=199112#p701892
viewtopic.php?f=201&t=199112#p701902
A process could be tried over 1000 times and above but if other users indicates that it works, it is kind of obvious that for these users, it didn't took multiple times to try to implement it with the same OC release version.
Yes, that is correct.If the only time the "route=information/contact/success" page appears is when a person submits the contact form (is that correct?)
As indicated on my previous reply, if you cannot see the reply to email address while Opencart already instantiates it, then it is not an actual issue with Opencart.As to your reply about the 'from' email address not showing for me: where might the reply-to address be specified on my end?
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
There is nothing wrong with showing alternate solutions to the same problem. What I posted is a simple edit that works to address the initial question: how to get the contact success message to appear on the contact success page. And it does so without affecting any other page.
Occom's razor.
I'm on version 3.0.2.0
I've done the steps provided by my success page is still empty.
I've attached my codes, please let me know if theres something that I've missed.
Thanks!
Attachments
{{ header }}
<div id="common-success" class="container">
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
{% if text_success %}
<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ text_success }}</div>
{% endif %}
<div class="row">{{ column_left }}
{% if column_left and column_right %}
{% set class = 'col-sm-6' %}
{% elseif column_left or column_right %}
{% set class = 'col-sm-9' %}
{% else %}
{% set class = 'col-sm-12' %}
{% endif %}
<div id="content" class="{{ class }}">{{ content_top }}
<h1>{{ heading_title }}</h1>
{{ text_success }}
<div class="buttons">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{{ content_bottom }}</div>
{{ column_right }}</div>
</div>
{{ footer }}
Something going wrong
Attachments
twig file - 2018-05-04_22-19-51.jpg (57.69 KiB) Viewed 3383 times
php step 2 - 2018-05-04_22-15-46.jpg (88.1 KiB) Viewed 3383 times
php step 1 - 2018-05-04_22-12-07.jpg (64.31 KiB) Viewed 3383 times
Code: Select all
$data['text_message'] = $this->language->get('text_success');
LE. Or just replace file in controller...
Opencart 2.3.0.2 Bugs Fix Added | Opencart 2.3.0.2 Custom Version | Opencart 3.0.3.1 Bugs Fix Added
xxvirusxx wrote: ↑Sun May 06, 2018 6:40 pmJust add this line before $data['continue'] = $this->url->link('common/home'); in public function success() { from catalog/controller/information/contact.phpWork without problems.Code: Select all
$data['text_message'] = $this->language->get('text_success');
THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!!
the better solution is the follow
1)/catalog/language/en-gb/information/contact.php
find
'text_success'
and change to
'text_message'
2)edit system/config/catalog.php
comment the following lines which is at the bottom
from
'controller/*/after' => array(
'event/debug/after'
)
to
//'controller/*/after' => array(
// 'event/debug/after'
//)
###
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
the better solution is the follow
1)/catalog/language/en-gb/information/contact.php
find
'text_success'
and change to
'text_message'
2)edit system/config/catalog.php
comment the following lines which is at the bottom
from
'controller/*/after' => array(
'event/debug/after'
)
to
//'controller/*/after' => array(
// 'event/debug/after'
//)
###
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
Thank you! This solution work for me.tingwing wrote: ↑Sun Aug 26, 2018 8:11 pmthis is a bug of opencart3.0
the better solution is the follow
1)/catalog/language/en-gb/information/contact.php
find
'text_success'
and change to
'text_message'
2)edit system/config/catalog.php
comment the following lines which is at the bottom
from
'controller/*/after' => array(
'event/debug/after'
)
to
//'controller/*/after' => array(
// 'event/debug/after'
//)
###
I have build some opencart 3.0.2.0 eshops with Journal 2 template.
In one of them I have the problem that contact form after submitting dispays an empty pop up and nothing else happens. It doesnt send an email to admin.
I checked and I replaced the related files from the workable site to the other. I tried everything you wrote here, but unfortunatelly it cannot fix this problem.
Nothing is written in error logs.
Is there any idea. Could someone just see the page and tell me his opinion?
Thanks
Users browsing this forum: No registered users and 4 guests