Post by waylander1398 » Sun Mar 14, 2021 2:43 pm

hi there!
i have a problem in my shop that link in forgotten password email won't work and error said this link in not valid!
how can i fix this issue?
my oc version is 3.0.2
my website url : sport3nter.com

thanks for your support.

New member

Posts

Joined
Tue Mar 12, 2019 5:12 am

Post by mikeinterserv » Sun Mar 14, 2021 10:14 pm

Do you find your register emails words are all joined with no spaces as well.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by JNeuhoff » Sun Mar 14, 2021 11:18 pm

In your account/forgotten.twig you should use something like this for your button:

Code: Select all

<input type="submit" value="{{ button_continue }}" class="btn btn-primary" />
instead of your current

Code: Select all

<a href="https://sport3nter.com/index.php?route=account/login" class="btn btn-default">بازگشت</a>
You can ask the author of so-supermarket theme to fix it for you.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by mikeinterserv » Sun Mar 14, 2021 11:37 pm

I think he is probably referring to this no spacing issue that makes the text joined to the link.

Code: Select all

A new password was requested for MyShop customer account.To reset your password click on the link below:https://www.MyShop.com/index.php?route=account/reset&code=hyJQZaoyKb2NRWEUTE9UhHiEeAQqj8wYRTfnYTAoThe IP used to make this request was:1**.1**.2**.2**

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by waylander1398 » Thu Apr 01, 2021 4:16 am

JNeuhoff wrote:
Sun Mar 14, 2021 11:18 pm
In your account/forgotten.twig you should use something like this for your button:

Code: Select all

<input type="submit" value="{{ button_continue }}" class="btn btn-primary" />
instead of your current

Code: Select all

<a href="https://sport3nter.com/index.php?route=account/login" class="btn btn-default">بازگشت</a>
You can ask the author of so-supermarket theme to fix it for you.
hello again and very sorry for my late answer!
i cand find this code in my forgotten file.
can you please tell me where is this file location?
because i found 2 forgotten .twig file in my store and no one had this code!

New member

Posts

Joined
Tue Mar 12, 2019 5:12 am

Post by waylander1398 » Thu Apr 01, 2021 4:45 am

mikeinterserv wrote:
Sun Mar 14, 2021 11:37 pm
I think he is probably referring to this no spacing issue that makes the text joined to the link.

Code: Select all

A new password was requested for MyShop customer account.To reset your password click on the link below:https://www.MyShop.com/index.php?route=account/reset&code=hyJQZaoyKb2NRWEUTE9UhHiEeAQqj8wYRTfnYTAoThe IP used to make this request was:1**.1**.2**.2**
hello and thanks for yor answer.
no i checked this before , the link have space and its not the problem

New member

Posts

Joined
Tue Mar 12, 2019 5:12 am

Post by RicardoMoutinho » Thu Apr 01, 2021 5:07 am

I cant read anything man :laugh: :laugh: :laugh: :laugh: :laugh:

Can you post the code for the account/forgotten.twig file?
Last edited by RicardoMoutinho on Thu Apr 01, 2021 7:41 pm, edited 1 time in total.

Active Member

Posts

Joined
Sat Aug 04, 2018 4:36 am

Post by waylander1398 » Thu Apr 01, 2021 2:13 pm

ForgedGround wrote:
Thu Apr 01, 2021 5:07 am
I cant read anything man :laugh: :laugh: :laugh: :laugh: :laugh:

Can you post the code for the account/forgotten.twig file? I run 3.0.2 and my file looks like this :

Code: Select all

{{ header }}
<ul class="breadcrumb">
  {% for breadcrumb in breadcrumbs %}
  <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
  {% endfor %}
</ul>
{% if j3.settings.get('pageTitlePosition') == 'top' %}
  <h1 class="title page-title"><span>{{ heading_title }}</span></h1>
{% endif %}
{{ j3.loadController('journal3/layout', 'top') }}
<div id="account-forgotten" class="container">
  {% if error_warning %}
  <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</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 }}">
      {% if j3.settings.get('pageTitlePosition') == 'default' %}
        <h1 class="title page-title">{{ heading_title }}</h1>
      {% endif %}
      {{ content_top }}
      <p>{{ text_email }}</p>
      <form action="{{ action }}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <fieldset>
          <legend>{{ text_your_email }}</legend>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-email">{{ entry_email }}</label>
            <div class="col-sm-10">
              <input type="text" name="email" value="{{ email }}" placeholder="{{ entry_email }}" id="input-email" class="form-control" />
            </div>
          </div>
        </fieldset>
        <div class="buttons clearfix">
          <div class="pull-left"><a href="{{ back }}" class="btn btn-default">{{ button_back }}</a></div>
          <div class="pull-right">
            <button type="submit" class="btn btn-primary"><span>{{ button_continue }}</span></button>
          </div>
        </div>
      </form>
      {{ content_bottom }}</div>
    {{ column_right }}</div>
</div>
{{ footer }}
sorry I did not get it !
if you want my forgotten file content , please tell the full location of file , because there are two forgotten.twig in whole site contents

New member

Posts

Joined
Tue Mar 12, 2019 5:12 am

Post by RicardoMoutinho » Thu Apr 01, 2021 7:43 pm

Sorry man, i posted the wrong file...my bad...

Active Member

Posts

Joined
Sat Aug 04, 2018 4:36 am

Post by by mona » Thu Apr 01, 2021 11:02 pm

waylander1398 wrote:
Thu Apr 01, 2021 2:13 pm
sorry I did not get it !
if you want my forgotten file content , please tell the full location of file , because there are two forgotten.twig in whole site contents
You have two because one is in default theme and one is in the folder of your theme so-supermarket.

The one that is being used is in the folder of your theme.

The answer has already been provided.
waylander1398 wrote:
Thu Apr 01, 2021 4:16 am
JNeuhoff wrote:
Sun Mar 14, 2021 11:18 pm
In your account/forgotten.twig you should use something like this for your button:

Code: Select all

<input type="submit" value="{{ button_continue }}" class="btn btn-primary" />
instead of your current

Code: Select all

<a href="https://sport3nter.com/index.php?route=account/login" class="btn btn-default">بازگشت</a>
You can ask the author of so-supermarket theme to fix it for you.
Since you can not find the code in the forgotten.twig file
Not only can you it is their responsibility to fix it

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by waylander1398 » Wed Apr 14, 2021 4:45 pm

by mona wrote:
Thu Apr 01, 2021 11:02 pm
waylander1398 wrote:
Thu Apr 01, 2021 2:13 pm
sorry I did not get it !
if you want my forgotten file content , please tell the full location of file , because there are two forgotten.twig in whole site contents
You have two because one is in default theme and one is in the folder of your theme so-supermarket.

The one that is being used is in the folder of your theme.

The answer has already been provided.
waylander1398 wrote:
Thu Apr 01, 2021 4:16 am
JNeuhoff wrote:
Sun Mar 14, 2021 11:18 pm
In your account/forgotten.twig you should use something like this for your button:

Code: Select all

<input type="submit" value="{{ button_continue }}" class="btn btn-primary" />
instead of your current

Code: Select all

<a href="https://sport3nter.com/index.php?route=account/login" class="btn btn-default">بازگشت</a>
You can ask the author of so-supermarket theme to fix it for you.
Since you can not find the code in the forgotten.twig file
Not only can you it is their responsibility to fix it
hello again
i checked this twice
in the catalog/view/theme/supermarket/template/account
there is only one file with name login.twig !
there in nothing else in this folder and I also checked the intact and uninstalled source of the template; From the beginning, there was no other file in this folder!
And it worked well with the same system
this problem appeared recntly that i moved to another hosting.(no file have been changed)
i also checked catalog/controller/mail/forgotten.php file and i added ” . ‘ ‘” after $args[1] .
and also checked the forgotten.twig file in catalog/view/theme/default/template/account and every thing looks fine!
also checked and added space in {text-ip} section in catalog/language/my-language/account/forgotten.twig .

but after all nothing changed and the problem is not solved!

I also asked for template support from and they said its not a template issue!

New member

Posts

Joined
Tue Mar 12, 2019 5:12 am

Post by by mona » Wed Apr 14, 2021 7:39 pm

If it works well with the default template then it is going to be a template issue
I doubt anyone here is going to be able to assist you blind.

You can post in the commercial forum and ask for someone to go into your system and see what is going on.
viewforum.php?f=88

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: ravikumar22, Semrush [Bot] and 82 guests