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

common\cart.twig


 Share

Recommended Posts

common\cart.twig
В дефолтной теме.
{{ text_items }} - выводит слово товары, количество и цену.
 {% for total in totals %} {{ total.title }} {{ total.text }} {% endfor %} - Выводит сумму, итого и цену.

Хочу вместо {{ text_items }} чтобы выводило только цену и в другом месте количество товаров. 

Если вместо {{ text_items }} прописываю {% for total in totals %}  {{ total.text }} {% endfor %}, то нужный эффект, но там 2 цены -)))
Кто знает, подскажите пожалуйста -)
 

Link to comment
Share on other sites


Опыта в этом 0, но как всегда, метод тыка и немного логики -)
Для таких как я, может пригодится
catalog\controller\common\cart.php ищите сроку $data['text_items'], дальше думаю понятно как можно сделать

Edited by zik920
Link to comment
Share on other sites


  • 3 weeks later...
3 часа назад, VTstudio сказал:

из 15 сообщений 10 тем "Как сделать" Может в раздел услуги?

и во всех приходится разбираться самому, весь форум в таких услугах -)
Как-то сам обойдусь, если никто не хочет помочь, спасибо! 
П.с. магазина нету, так что не вижу смысла в этих услугах, на данный момент

Link to comment
Share on other sites


Попробуйте для начала поучить структуру, что где и откуда формируется, а там уже и 80% вопросов отпадет. Начните с конроллеров, вьюха, она выводит то, что подготовил для нее конроллер. 

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.