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?

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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

Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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

Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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.

Newbie

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

{{ 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 }}

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 1208 times

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

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

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

php step 1 - 2018-05-04_22-12-07.jpg (64.31 KiB) Viewed 1208 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...

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

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
'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 email :support@bestshop24h.com
my wechat:bestshop24h
my free extension:https://www.opencart.com/index.php?rout ... estshop24h


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by tingwing » 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
'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 email :support@bestshop24h.com
my wechat:bestshop24h
my free extension:https://www.opencart.com/index.php?rout ... estshop24h


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm
Who is online

Users browsing this forum: No registered users and 2 guests