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

Как вывести ссылки в личном кабинете


Recommended Posts

Необходимо сгделать меню пользователя в личном кабинете.

В файле common/account.twig добавил:

<div class="row">
<h1>Мои данные</h1>
<div class="col-sm-3">
<div class="osnovnoe">
<ul class="list-unstyled">
<li><a href="{{ logout }}">{{ text_logout }}</a></li> //не рилииет
<li><a href="{{ account }}">{{ text_account }}</a></li>//не рилииет
</ul>
</div>
<div class="osnovnoe-menu">
<ul class="list-unstyled">
<li><a href="{{ login }}">Мои данные</a></li>//не рилииет
<li><a href="{{ order }}">Мои заказы</a></li>
<li><a href="{{ shopping_cart }}">Корзина</a></li>//не рилииет
<li><a href="{{ wishlist }}">Избранное</a></li>
<li><a href="{{ edit }}">Редактировать профиль</a></li>
<li><a href="{{ password }}">Изменить пароль</a></li>
<li><a href="{{ newsletter }}">Мои подписки</a></li>
</ul>
</div>
</div>
<div class="col-sm-9">

</div>
</div>

Однако, не все ссылки рилииют.В когде отметил какие не рилииют

Как правильно вывести ссылки в шаблон?

 

Link to comment
Share on other sites


24 minutes ago, halfhope said:

А в контроллере их добавляли? Чтобы использовать переменные в шаблоне, нужно объявить их в родительском контроллере (common/account, судя по всему). 

точно! блин спасипотому что)туплю

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.