Дополнительные картинки

#
Re: Дополнительные картинки
Чудеса какие то(((((
Значит не судьба вывести картинку((((
Medeo
Модератор
#
Re: Дополнительные картинки
покажите Ваш XSL последней версии, у себя проверим
#
Re: Дополнительные картинки
Добрый день еще раз..
Посмотрите что не так я делаю для вывода дополнительных картинок?
<xsl:if test="item_propertys/item_property[@xml_name='foto1']/small_image/file_path!=''">
<img src="{property[@xml_name = 'foto1']/small_image/file_path}" alt="" style="border: 1px solid #DADADA; margin: 0px 5px 5px 0px" />
</xsl:if>
Medeo
Модератор
#
Re: Дополнительные картинки
Medeo,
картинки чего? ИС или магазина?
#
Re: Дополнительные картинки
Магазина
Medeo
Модератор
#
Re: Дополнительные картинки
Medeo,
а используете от ИС.

Цитата из руководства по интеграции:

Интернет магазин
Работа с дополнительными свойствами товара в XSL
Для внедрения в XSL значений свойств используются следующие конструкции:
Значение поля:
<xsl:value-of select="property[@xml_name = 'FIELD_NAME']/value"/>

Для большой картинки:
<xsl:value-of select="property[@xml_name = 'FIELD_NAME']/file_path"/>

Для малой картинки:
<xsl:value-of select="property[@xml_name = 'FIELD_NAME']/small_image/file_path"/>


Вместо FIELD_NAME необходимо указать имя поля.
#
Re: Дополнительные картинки
Ничего не понял(((((
Как это должно выглядеть в XSL полностью
Куда вставлять значение поля?
Куда вставлять код для малой картинки?
Medeo
#
Re: Дополнительные картинки
В общем XML у меня такой получается..

<?xml version="1.0" encoding="windows-1251"?>
<shop id="1" current_group_id="629">
<user_id>0</user_id>
<name>Демонстрационный магазин</name>
<description></description>
<path>/shop/</path>
<group id="625" parent="0">
<name>Okuma</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>1</path>
<fullpath>1/</fullpath>
<count_items>0</count_items>
<count_groups>13</count_groups>
<count_all_items>52</count_all_items>
<count_all_groups>13</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
<group id="626" parent="625">
<name>OKUMA Alumina</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>1</path>
<fullpath>1/1/</fullpath>
<count_items>3</count_items>
<count_groups>0</count_groups>
<count_all_items>3</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="627" parent="625">
<name>OKUMA Avenger</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>2</path>
<fullpath>1/2/</fullpath>
<count_items>4</count_items>
<count_groups>0</count_groups>
<count_all_items>4</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="628" parent="625">
<name>OKUMA Epix</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>3</path>
<fullpath>1/3/</fullpath>
<count_items>7</count_items>
<count_groups>0</count_groups>
<count_all_items>7</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="629" parent="625">
<name>OKUMA Epix Carp с байтраннером</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>4</path>
<fullpath>1/4/</fullpath>
<count_items>4</count_items>
<count_groups>0</count_groups>
<count_all_items>4</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="630" parent="625">
<name>OKUMA Epix Pro</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>5</path>
<fullpath>1/5/</fullpath>
<count_items>8</count_items>
<count_groups>0</count_groups>
<count_all_items>8</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="631" parent="625">
<name>OKUMA Epix Pro Carp с байтранером</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>6</path>
<fullpath>1/6/</fullpath>
<count_items>1</count_items>
<count_groups>0</count_groups>
<count_all_items>1</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="632" parent="625">
<name>OKUMA Inspira</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>7</path>
<fullpath>1/7/</fullpath>
<count_items>7</count_items>
<count_groups>0</count_groups>
<count_all_items>7</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="633" parent="625">
<name>OKUMA Lodestar</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>8</path>
<fullpath>1/8/</fullpath>
<count_items>3</count_items>
<count_groups>0</count_groups>
<count_all_items>3</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="634" parent="625">
<name>OKUMA Magda Pro</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>9</path>
<fullpath>1/9/</fullpath>
<count_items>2</count_items>
<count_groups>0</count_groups>
<count_all_items>2</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="635" parent="625">
<name>OKUMA Metaloid</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>10</path>
<fullpath>1/10/</fullpath>
<count_items>8</count_items>
<count_groups>0</count_groups>
<count_all_items>8</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="636" parent="625">
<name>OKUMA Spectrum</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>11</path>
<fullpath>1/11/</fullpath>
<count_items>1</count_items>
<count_groups>0</count_groups>
<count_all_items>1</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="637" parent="625">
<name>OKUMA Tamoka</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>12</path>
<fullpath>1/12/</fullpath>
<count_items>3</count_items>
<count_groups>0</count_groups>
<count_all_items>3</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="638" parent="625">
<name>OKUMA Zeon</name>
<description></description>
<order>0</order>
<indexation>0</indexation>
<path>13</path>
<fullpath>1/13/</fullpath>
<count_items>1</count_items>
<count_groups>0</count_groups>
<count_all_items>1</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
</group>
<sallers>
<saller id="1">
<sallers_name>ООО &quot;Инфинити&quot;</sallers_name>
<sallers_contact_person>Иванов И. А.</sallers_contact_person>
<sallers_comment></sallers_comment>
<sallers_address></sallers_address>
<sallers_phone></sallers_phone>
<sallers_fax></sallers_fax>
<sallers_http></sallers_http>
<sallers_email></sallers_email>
<sallers_inn></sallers_inn>
</saller>
</sallers>
<item id="230" group="629">
<captcha_key>67003</captcha_key>
<name>OKUMA Epix Carp EB-30 с байтранером</name>
<saller>0</saller>
<marking_of_goods>236</marking_of_goods>
<description>Безинерционая катушка с байтранером, 0,30мм/160м, 9+1 подш., алюминий/алюминий</description>
<date>30.11.1999</date>
<datetime>30.11.1999 00:00:00</datetime>
<time>00:00:00</time>
<putoff_date>00.00.0000 00:00:00</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<text>&lt;style type=&quot;text/css&quot;&gt; &lt;!-- .стиль1 {color: #000000} .стиль1 {font-size:9px}; .стиль2 {color: #FF0000; } --&gt; &lt;/style&gt; &lt;br/&gt;      Безинерционная катушка  &lt;strong&gt;Okuma Epix Carp EB- 30&lt;/strong&gt; - &lt;span class=&quot;стиль2&quot;&gt;&lt;strong&gt;НОВИНКА&lt;/strong&gt;&lt;/span&gt; (технические изменения). &lt;br/&gt; &lt;br/&gt; &lt;li&gt;9 шарикоподшипников из высоколегированной нержавеющей стали. &lt;li&gt;1 роликовый подшипник обгонной муфты Quick Set (мгновенный стопор обратного хода). &lt;li&gt;Система Байтранер. &lt;li&gt;Корпус из ударопрочного облегчённого металлографита покрыт антикоррозийным напылением. &lt;li&gt;Система абсолютной балансировки ротора RES II (Rotor Egualizing System). &lt;li&gt;Высокоточная бронзовая шестерня. &lt;li&gt;Мощный многопозиционный фрикцион EDS (Extra Drag System)  с плавной регулировкой. &lt;li&gt;Полая дужка лесоукладывателя из нержавеющей стали, покрыта нитридом титана. &lt;li&gt;Антизакручивающий ролик лесоукладывателя из нержавеющей стали, покрытый нитридом титана. &lt;li&gt;&lt;span class=&quot;стиль2&quot;&gt;Новая усиленная алюминиевая ручка шарнирного типа с мягким набалдашником.&lt;/span&gt; &lt;li&gt;Винтовой тип крепления рукоятки позволяет переустановить ручку под правую или левую руку. &lt;li&gt;Надежная система фиксации дужки в открытом положении с системой блокировки ASB. &lt;li&gt;Ось из высокоуглеродистой легированной стали. &lt;li&gt;Основная точёная облегчённая алюминиевая шпуля с бортиком из нержавеющей стали, покрытый нитридом титана. &lt;li&gt;Запасная алюминиевая шпуля c покрытием из нитрида титана. &lt;li&gt;Предаточное число шестерён 5,0 : 1 &lt;li&gt;Вес катушки 350 грамм. &lt;li&gt;Ёмкость шпули 0,30мм / 160м. &lt;br/&gt;</text>
<producer id="42">
<name>OKUMA</name>
<description></description>
<image></image>
<path></path>
<shop_producers_list_name>OKUMA</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path></shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
</producer>
<image width="383" height="325">/upload/shop_1/item_catalog_230/shop_items_catalog_image230.jpg</image>
<small_image width="100" height="84">/upload/shop_1/item_catalog_230/small_shop_items_catalog_image230.jpg</small_image>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>1</rest>
<mesure></mesure>
<price>2000.00</price>
<price_tax>2000.00</price_tax>
<price_discount>2000.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_230</path>
<fullpath>1/4/</fullpath><seo_title></seo_title>
<seo_description>Рыбаловные снасти, удочки, катушки, спининги, удилища, Atemi, BFT-Filament, Co Star VII, Pack-A-Pole, Flambeau, Line Winder, Lineaeffe, OKUMA, PLANO, Rapala, Ron Thompson, RYOBI, Shakespeare, Shimano, VIVA, VMC, Wirek,</seo_description>
<seo_keywords>Рыбаловные снасти, удочки, катушки, спининги, удилища, Atemi, BFT-Filament, Co Star VII, Pack-A-Pole, Flambeau, Line Winder, Lineaeffe, OKUMA, PLANO, Rapala, Ron Thompson, RYOBI, Shakespeare, Shimano, VIVA, VMC, Wirek,</seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<property id="132" dir_id="0" xml_name="foto1">
<name>фото1</name>
<xml_name>foto1</xml_name>
<type>1</type>
<order>0</order>
<prefics></prefics>
<value>shop_property_file_230_132.jpg</value>
<small_image>
<value>small_shop_property_file_230_132.jpg</value>
</small_image>
<mesure>боб</mesure></property>
</item>
</shop>
Medeo
Модератор
#
Re: Дополнительные картинки
Вы же выше написали, необходимо только внести коррективы.

Показ малой картинки со ссылкой на большую:
<xsl:if test="property[@xml_name='foto1']/small_image/file_path!=''">
<a href="{property[@xml_name = 'foto1']/file_path" target="_blank">
<img src="{property[@xml_name = 'foto1']/small_image/file_path}" alt="" style="border: 1px solid #DADADA; margin: 0px 5px 5px 0px" />
</a>
</xsl:if>
#
Re: Дополнительные картинки
Ничего не получается(((
Можно Вас попросить разобраться с этими картинками??
Адрес сайта http://test3.wirek.ru
Доступ к админке не менялся после инсталяции
Medeo
Авторизация