Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Решено] OC3 настройка шаблона


breg
 Share

Recommended Posts

Решил перейти на OC3 и уткнулся в twig. Не могу понять:

1. Как вывести в карточку товара Вес и ISBN

Добавление в /catalog/controller/product/product.php

'isbn'        => $result['isbn'],
'weight'        => $result['weight'],

 и {{ weight }} {{ isbn }}  в шаблон

ничего не даёт. Где-то ещё это надо прописывать?

 

2. Способ оплаты "Банковский перевод" - как в сообщение вставить номер заказа и сумму? Это вообще возможно?

 

Спасибо!

Link to comment
Share on other sites


Ох, и правда кэш, но какой-то странный. Вчера кэширование отключил, всё вычистил - не помогло, всю голову сломал. А сейчас открыл страницу - показывает.

Link to comment
Share on other sites


в тройке, при правке файлов twig, просто обновления кеша модификаторов недостаточно

нужно еще обновлять кеш шаблона (theme cache) в Dashboard > Developer Settings (если включено)

Link to comment
Share on other sites

<file path="system/library/template/twig.php">
	<operation>
		<search><![CDATA[$this->twig = new \Twig_Environment($loader, $config);]]></search>
		<add position="before"><![CDATA[
		$config['auto_reload'] = true;
		]]></add>
	</operation>
	
</file>

 

  • +1 1
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.