Post by greenmountain802 » Wed Nov 22, 2017 7:53 pm

I have used the code above (second post not first) and I'm still not seeing any Success Message whether logged in or not. I'm a new user to OC so please forgive ignorance If I'm missing something... I did double check and ensure all was inserted as directed, cleared cache and retried this sever times before resorting to posting here;)

Thanks in advance for any help you can provide me!!!


Posts

Joined
Sun Nov 19, 2017 4:31 am

Post by straightlight » Thu Nov 23, 2017 3:50 am

What were the steps applied for clearing the cache?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ckeilitz » Fri Jan 26, 2018 9:40 am

Fix
Post by straightlight » Sat Nov 04, 2017 10:38 am
worked for me after applying and clearing the caches!

Thank you guys, very helpful!

Newbie

Posts

Joined
Thu Jan 25, 2018 2:21 am

Post by Livakee » Fri Mar 02, 2018 9:03 pm

straightlight, I tried 100 times, and no result. could you please help me?
OC Version 3.0.2.0
Cleared browser cache and cache from admin (modifications menu)

anything else? :(

Newbie

Posts

Joined
Tue Feb 27, 2018 8:05 pm

Post by AllenFreeman » Sat Mar 10, 2018 6:06 am

In 3.0.2.0, the fix to restore the success message does not require the changes outlined above. It's easier.

In success.twig :

Find:

Code: Select all

{{ text_message }}
Replace with:

Code: Select all

{{ 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...
Last edited by straightlight on Fri May 29, 2020 5:47 am, edited 1 time in total.
Reason: Added code tags.

New member

Posts

Joined
Tue Feb 20, 2018 10:18 pm

Post by straightlight » Sat Mar 10, 2018 7:08 am

In 3.0.2.0, the fix to restore the success message does not require the changes outlined above. It's easier.
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.

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by AllenFreeman » Sat Mar 10, 2018 8:09 am

Straightlight, I tried to solve the described issue following the instructions you posted, but it didn't work after multiple attempts.

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...

New member

Posts

Joined
Tue Feb 20, 2018 10:18 pm

Post by straightlight » Sat Mar 10, 2018 8:38 am

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.
How can such analysis be trusted at this point when two other users are mentioning that the modifications do work?

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.
If the only time the "route=information/contact/success" page appears is when a person submits the contact form (is that correct?)
Yes, that is correct.
As to your reply about the 'from' email address not showing for me: where might the reply-to address be specified on my end?
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by AllenFreeman » Sat Mar 10, 2018 9:30 pm

Perhaps the previous users weren't using v 3.0.2.0 as I am?

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.

New member

Posts

Joined
Tue Feb 20, 2018 10:18 pm

Post by moovolution » Sun Apr 29, 2018 4:58 am

hello all,

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!

Newbie

Posts

Joined
Fri Apr 13, 2018 7:18 pm

Post by moovolution » Sun Apr 29, 2018 6:10 am

this is what i have for success.twig... cant upload the file...

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 }}
Last edited by straightlight on Thu May 14, 2020 5:14 am, edited 1 time in total.
Reason: Added code tags.

Newbie

Posts

Joined
Fri Apr 13, 2018 7:18 pm

Post by alex31oct » Sat May 05, 2018 5:25 am

Not working in version 3.0.2.0,
Something going wrong

Attachments

2018-05-04_22-19-51.jpg

twig file - 2018-05-04_22-19-51.jpg (57.69 KiB) Viewed 9180 times

2018-05-04_22-15-46.jpg

php step 2 - 2018-05-04_22-15-46.jpg (88.1 KiB) Viewed 9180 times

2018-05-04_22-12-07.jpg

php step 1 - 2018-05-04_22-12-07.jpg (64.31 KiB) Viewed 9180 times


Newbie

Posts

Joined
Wed May 02, 2018 2:20 pm

Post by xxvirusxx » Sun May 06, 2018 6:40 pm

Just add this line before $data['continue'] = $this->url->link('common/home'); in public function success() { from catalog/controller/information/contact.php

Code: Select all

$data['text_message'] = $this->language->get('text_success');
Work without problems.

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by alex31oct » Mon May 07, 2018 1:14 am

Thanks man, You are helpful. Finally it's work. Thanks again :good:

Newbie

Posts

Joined
Wed May 02, 2018 2:20 pm

Post by gkradam » Mon May 21, 2018 4:25 pm

xxvirusxx wrote:
Sun May 06, 2018 6:40 pm
Just add this line before $data['continue'] = $this->url->link('common/home'); in public function success() { from catalog/controller/information/contact.php .....
Worked for me too. Thanks!

Newbie

Posts

Joined
Wed Jan 31, 2018 1:23 am

Post by Moutas » Mon Jul 30, 2018 6:29 pm

xxvirusxx wrote:
Sun May 06, 2018 6:40 pm
Just add this line before $data['continue'] = $this->url->link('common/home'); in public function success() { from catalog/controller/information/contact.php

Code: Select all

$data['text_message'] = $this->language->get('text_success');
Work without problems.

THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!!

Newbie

Posts

Joined
Mon Jul 30, 2018 6:15 pm

Post by tingwing » Sun Aug 26, 2018 8:06 pm

this is a bug of opencart3.0

the better solution is the follow

1)/catalog/language/en-gb/information/contact.php
find

Code: Select all

'text_success'
and change to

Code: Select all

'text_message'
2)edit system/config/catalog.php
comment the following lines which is at the bottom

from

Code: Select all

	'controller/*/after'  => array(
		'event/debug/after'
	)
	
to

Code: Select all

	//'controller/*/after'  => array(
	//	'event/debug/after'
	//)

###
Last edited by straightlight on Thu May 14, 2020 5:15 am, edited 1 time in total.
Reason: Added code tags.

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by one2012 » Mon Sep 24, 2018 8:49 pm

tingwing wrote:
Sun Aug 26, 2018 8:11 pm
this is a bug of opencart3.0

the better solution is the follow

1)/catalog/language/en-gb/information/contact.php
find

Code: Select all

'text_success'
and change to

Code: Select all

'text_message'
2)edit system/config/catalog.php
comment the following lines which is at the bottom

from

Code: Select all

	'controller/*/after'  => array(
		'event/debug/after'
	)
	
to

Code: Select all

	//'controller/*/after'  => array(
	//	'event/debug/after'
	//)

###
Thank you! This solution work for me.

New member

Posts

Joined
Wed Feb 06, 2013 11:22 pm

Post by leatherboy » Tue Feb 19, 2019 10:17 pm

Hi.
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

Newbie

Posts

Joined
Fri Feb 12, 2016 2:32 am

Post by straightlight » Tue Feb 19, 2019 10:21 pm

Is there any idea.
Ensure to clear your OC cache after applying these steps. FAQ: viewtopic.php?f=176&p=739789#p718325

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 26 guests