Thanks in advance for any help you can provide me!!!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In success.twig :
Find:
Code: Select all
{{ text_message }}
Code: Select all
{{ text_success }}
Reason: Added code tags.
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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
Code: Select all
{{ 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 }}
Reason: Added code tags.
Something going wrong
Attachments
twig file - 2018-05-04_22-19-51.jpg (57.69 KiB) Viewed 9205 times
php step 2 - 2018-05-04_22-15-46.jpg (88.1 KiB) Viewed 9205 times
php step 1 - 2018-05-04_22-12-07.jpg (64.31 KiB) Viewed 9205 times
Code: Select all
$data['text_message'] = $this->language->get('text_success');
LE. Or just replace file in controller...
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
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
Code: Select all
'text_success'
Code: Select all
'text_message'
comment the following lines which is at the bottom
from
Code: Select all
'controller/*/after' => array(
'event/debug/after'
)
Code: Select all
//'controller/*/after' => array(
// 'event/debug/after'
//)
###
Reason: Added code tags.
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
findand change toCode: Select all
'text_success'
2)edit system/config/catalog.phpCode: Select all
'text_message'
comment the following lines which is at the bottom
fromtoCode: Select all
'controller/*/after' => array( 'event/debug/after' )
Code: Select all
//'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
Ensure to clear your OC cache after applying these steps. FAQ: viewtopic.php?f=176&p=739789#p718325Is there any idea.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 6 guests