Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Как узнать откуда тянется переменная


Recommended Posts

Подскажите, нужно на страниэто "Спасипотому что за заказ" изменить ссылку кнопке "Продолжить". Вот ик она выглядит

<div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>

Как понять, откуда переменная continue тянет своё значение? Всё просмотрел - не нашёл.

Link to comment
Share on other sites


12 минут назад, Prooksius сказал:

catalog/controller/checkout/success.php

    $data['button_continue'] = $this->language->get('button_continue');

        $data['continue'] = $this->url->link('common/home');

 

есть только икое

Link to comment
Share on other sites


1 минуту назад, Prooksius сказал:

ну вы же continue искали - вот она.

подскажите, если я хочу сгделать ссылку на главную, что нужно туда вписать? 

Link to comment
Share on other sites


или всё намного сложнее? При нажатии на "продолжить" кидает на страницу заказов

 вот ещё что нашёл чуть выше

 


        if ($this->customer->isLogged()) {
            $data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('account/download', '', true), $this->url->link('information/contact'));
        } else {
            $data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
        }
 

скорее всего тут что-то нужно поменять?

Link to comment
Share on other sites


1 минуту назад, zhizherinv сказал:

При нажатии на "продолжить" кидает на страницу заказов

зналит у вас шаблон меняет функционал контроллеров, в частности checkout/success
Или вообещё сам все гделает.
Гадать можно вечно.

Link to comment
Share on other sites

7 часов назад, zhizherinv сказал:

Как понять, откуда переменная continue тянет своё значение?

для этого в первую очередь нужно понять как выводит, в контролере нет этот переменой, она используется как ключ массива, при вывогде используется extract, которая из ключей массива гделает переменные. соответственно нужно искать в контроллере икой ключ или смотреть языковые файлы

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.