Перейти к содержимому


Фотография
- - - - -

Layout of JBPrice Plain


Лучший Ответ RobertCh , 11 October 2015 - 08:37

Layouts are there:

 
/media/zoo/applications/jbuniversal/cart-elements/price/value/tmpl/
Перейти к сообщению


Сообщений в теме: 5

#1 RobertCh

RobertCh

Отправлено 01 October 2015 - 10:32

I need to change the laout of the JBPrice Plain to suit the look of my site. In 2.1.5 I have done it by editing the file:

/media/zoo/applications/jbuniversal/elements/jbpriceadvance/tmpl/_prices.php

In 2.2.1 I cannot find anything similar... What file to edit?

 

screen2.png


  • 0

#2 SmetDenis

SmetDenis

Отправлено 05 October 2015 - 06:29

Hello,
 
New JBPrice element has complex layouts like item type.
You can find it here - media\zoo\applications\jbuniversal\templates-system\renderer\jbprice
And for each element - media\zoo\applications\jbuniversal\cart-elements\price\ * \tmpl\ *.php
 
Version 2.2.x still doesn't have english localisation. I think we will do it on this week.

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#3 RobertCh

RobertCh

Отправлено 05 October 2015 - 14:43

I still cannot get how to change the layout... It is complicated... Which files specifically to edit for the JBPrice Plain »teaser« template for example? And for the basket in module position?

 

The translation is no problem for me. Я немного говорю по русски :)


  • 0

#4 SmetDenis

SmetDenis

Отправлено 05 October 2015 - 15:17

Hi,

I still cannot get how to change the layout... It is complicated... Which files specifically to edit for the JBPrice Plain »teaser« template for example? And for the basket in module position?

Since JBZoo 2.2.0 JBPrice (plain|calc) has new layout system and special extensions - price elements. It same like item layouts and type elements

As I said, all default price templates are here
media\zoo\applications\jbuniversal\templates-system\renderer\jbprice
All positions and layouts defined here http://llfl.ru/y2igzz(it's common for whole website)

Each application template can overwrite default layouts. For example, for UIkit
media\zoo\applications\jbuniversal\templates\uikit\templates-system\renderer\jbprice

So if full.php exists it overwrites default full.php from (jbuniversal\templates-system\renderer\jbprice)

Lets see
media\zoo\applications\jbuniversal\templates\uikit\templates-system\renderer\jbprice\full.php
9pj3_200x0.png

It has three position and you can edit it in the control panel
c7tr_200x0.png

After that create some JBPrice properties (value, discount, params, etc)
13f3_200x0.png

... and add them to jbprice full (positions.xml)
ispm_200x0.png


I hope that will be helpful for you.


The translation is no problem for me. Я немного говорю по русски

Отлично! :)
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#5 RobertCh

RobertCh

Отправлено 06 October 2015 - 07:31

OK, this is clear. But I need to go one level deeper. I want to edit the layouts of elements, for example »Цена товара (ядро)«, »Скидка (ядро)«, »Кнопки (ядро)«...

 

Are the files there?

media/zoo/applications/jbuniversal/templates-system/renderer/element/jbprice

( after the override: media/zoo/applications/jbuniversal/templates/uikit/templates-system/renderer/element/jbprice)

 

I change them, but with no effects...

 

Where are the file for sublayouts (Шаблоны) for JBPrice (Цена товара) (Было / Cтало / Экономия (div + span) | Было / Cтало / Экономия (dl, dt, dd) | Было / Cтало / Экономия (table)| Начальная цена (до скидки) | Конечная цена (после скидки)| Размер скидки | Вы экономите):

 

screen3.png


  • 0

#6 RobertCh

RobertCh

Отправлено 11 October 2015 - 08:37   Лучший Ответ

Layouts are there:

 
/media/zoo/applications/jbuniversal/cart-elements/price/value/tmpl/

  • 1




Click to return to top of page in style!