Вывод допоплнительных свойств

#
Вывод допоплнительных свойств
Интересует вывод доп свойства в интернет магазинет типа файл, старый способ непоходит к сожалению
<img src="{property[@xml_name = 'FIELD_NAME']/file_path}" /> для большой картинки
<img src="{property[@xml_name = 'FIELD_NAME']/small_image/file_path}" /> для малой
Делаю то благодаря чему, несмотря ни на что
Модератор
#
Re: Вывод допоплнительных свойств
suba,
путь к директории есть у родительского элемента, поэтому путь будет
<a href="{../dir}{file}"><img src="{../dir}{file_small}" /></a>

#
Re: Вывод допоплнительных свойств
Что то неполучается, вывод вот таким образом
<a href="{../dir[@xml_name = 'foto2']}{file}"><img src="{../dir[@xml_name = 'foto2']}{file_small}" />

А в XML похоже вобще нет пути к директории
<?xml version="1.0" encoding="UTF-8"?>
<shop id="2" current_group_id="596">
   <name>Доска объявлений</name>
   <description></description>
   <path>/w/</path>
   <site_id>1</site_id>
   <shop_image_small_max_width>200</shop_image_small_max_width>
   <shop_image_big_max_width>1000</shop_image_big_max_width>
   <shop_image_small_max_height>200</shop_image_small_max_height>
   <shop_image_big_max_height>1000</shop_image_big_max_height>
   <structure_id>34</structure_id>
   <shop_country_id>175</shop_country_id>
   <shop_currency id="1">
      <shop_currency_name>руб.</shop_currency_name>
      <shop_currency_international_name>RUB</shop_currency_international_name>
      <shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
      <shop_currency_is_default>1</shop_currency_is_default>
   </shop_currency>
   <all_currency>
      <shop_currency id="1">
         <shop_currency_name>руб.</shop_currency_name>
         <shop_currency_international_name>RUB</shop_currency_international_name>
         <shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
         <shop_currency_is_default>1</shop_currency_is_default>
         <shop_currency_coefficient>1</shop_currency_coefficient>
      </shop_currency>
      <shop_currency id="2">
         <shop_currency_name>&amp;euro;</shop_currency_name>
         <shop_currency_international_name>EUR</shop_currency_international_name>
         <shop_currency_value_in_basic_currency>36.889479</shop_currency_value_in_basic_currency>
         <shop_currency_is_default>0</shop_currency_is_default>
         <shop_currency_coefficient>0.027108000088589</shop_currency_coefficient>
      </shop_currency>
      <shop_currency id="3">
         <shop_currency_name>$</shop_currency_name>
         <shop_currency_international_name>USD</shop_currency_international_name>
         <shop_currency_value_in_basic_currency>23.639664</shop_currency_value_in_basic_currency>
         <shop_currency_is_default>0</shop_currency_is_default>
         <shop_currency_coefficient>0.042301785676818</shop_currency_coefficient>
      </shop_currency>
   </all_currency>
   <shop_order_status id="0">
   </shop_order_status>
   <shop_mesures id="9">
      <shop_mesures_name>боб</shop_mesures_name>
      <shop_mesures_description>бобина</shop_mesures_description>
   </shop_mesures>
   <shop_shops_send_order_mail_admin>0</shop_shops_send_order_mail_admin>
   <shop_shops_send_order_mail_user>0</shop_shops_send_order_mail_user>
   <shop_shops_admin_mail>admin@localhost.ru</shop_shops_admin_mail>
   <warehouses>
      <warehouse id="2">
         <shop_warehouse_name>Основной</shop_warehouse_name>
         <shop_warehouse_activity>1</shop_warehouse_activity>
         <shop_warehouse_address></shop_warehouse_address>
         <shop_warehouse_order>0</shop_warehouse_order>
         <shop_warehouse_default>0</shop_warehouse_default>
      </warehouse>
   </warehouses>
   <group id="596" parent="0">
      <name>1</name>
      <description></description>
      <order>0</order>
      <indexation>1</indexation>
      <path>1</path>
      <fullpath>1/</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>
   </group>
   <sallers>
   </sallers>
   <taxes>
      <tax id="2">
         <tax_name>НДС 18 (входит в цену)</tax_name>
         <tax_rate>18</tax_rate>
         <tax_is_in_price>1</tax_is_in_price>
      </tax>
      <tax id="5">
         <tax_name>НДС 18 (не входит в цену)</tax_name>
         <tax_rate>18</tax_rate>
         <tax_is_in_price>0</tax_is_in_price>
      </tax>
      <tax id="19">
         <tax_name>НДС 10 (входит в цену)</tax_name>
         <tax_rate>10</tax_rate>
         <tax_is_in_price>1</tax_is_in_price>
      </tax>
      <tax id="20">
         <tax_name>НДС 10 (не входит в цену)</tax_name>
         <tax_rate>10</tax_rate>
         <tax_is_in_price>0</tax_is_in_price>
      </tax>
      <tax id="21">
         <tax_name>НДС (без налога)</tax_name>
         <tax_rate>0</tax_rate>
         <tax_is_in_price>1</tax_is_in_price>
      </tax>
   </taxes>
   <properties_for_group>
      <property id="64" parent_id="0" xml_name="opis">
         <name>Описание</name>
         <property_name>Описание</property_name>
         <shop_list_of_properties_type>4</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="62" parent_id="0" xml_name="por">
         <name>Порог цен</name>
         <property_name>Порог цен</property_name>
         <shop_list_of_properties_type>1</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="63" parent_id="0" xml_name="kont">
         <name>Контакты</name>
         <property_name>Контакты</property_name>
         <shop_list_of_properties_type>1</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="61" parent_id="0" xml_name="foto2">
         <name>Фото 2</name>
         <property_name>Фото 2</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="65" parent_id="0" xml_name="foto3">
         <name>Фото 3</name>
         <property_name>Фото 3</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="66" parent_id="0" xml_name="foto4">
         <name>Фото 4</name>
         <property_name>Фото 4</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="67" parent_id="0" xml_name="foto5">
         <name>Фото 5</name>
         <property_name>Фото 5</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="68" parent_id="0" xml_name="foto6">
         <name>Фото 6</name>
         <property_name>Фото 6</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="69" parent_id="0" xml_name="foto7">
         <name>Фото 7</name>
         <property_name>Фото 7</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="70" parent_id="0" xml_name="foto8">
         <name>Фото 8</name>
         <property_name>Фото 8</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="71" parent_id="0" xml_name="foto9">
         <name>Фото 9</name>
         <property_name>Фото 9</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
      <property id="72" parent_id="0" xml_name="foto10">
         <name>Фото 10</name>
         <property_name>Фото 10</property_name>
         <shop_list_of_properties_type>2</shop_list_of_properties_type>
         <shop_list_of_properties_description></shop_list_of_properties_description>
         <property_show_kind>0</property_show_kind>
      </property>
   </properties_for_group>
   <count_items>1</count_items>
   <current_page>0</current_page>
   <items_on_page>10</items_on_page>
   <item id="175" group="596">
      <captcha_key>29890</captcha_key>
      <name>Петросян Евгений Павлович</name>
      <show_count>2</show_count>
      <saller>0</saller>
      <marking_of_goods></marking_of_goods>
      <description></description>
      <date>05.06.2012</date>
      <datetime>05.06.2012 03:57:08</datetime>
      <time>03:57:08</time>
      <putoff_date>00.00.0000 00:00:00</putoff_date>
      <putend_date>00.00.0000 00:00:00</putend_date>
      <image width="1000" height="558">/upload/shop_2/1/7/5/item_175/shop_items_catalog_image175.jpg</image>
      <small_image width="200" height="111">/upload/shop_2/1/7/5/item_175/small_shop_items_catalog_image175.jpg</small_image>
      <type>0</type>
      <weight>0</weight>
      <weight_mesure>боб</weight_mesure>
      <rest>0</rest>
      <mesure></mesure>
      <shop_tax_id>0</shop_tax_id>
      <price>0.00</price>
      <price_tax>0.00</price_tax>
      <price_discount>0.00</price_discount>
      <item_currency>руб.</item_currency>
      <currency>руб.</currency>
      <is_active>1</is_active>
      <order>0</order>
      <path>item_175</path>
      <fullpath>1/</fullpath>
      <seo_title>Петросян Евгений Павлович</seo_title>
      <seo_description>Петросян Евгений Павлович</seo_description>
      <seo_keywords>Петросян Евгений Павлович</seo_keywords>
      <indexation>1</indexation>
      <vendorCode></vendorCode>
      <shop_items_cml_id>82262D66-DA4E-BDDD-E80F-607A7C387B31</shop_items_cml_id>
      <user_id>0</user_id>
      <site_users_id>0</site_users_id>
      <property id="62" dir_id="0" xml_name="por">
         <name>Порог цен</name>
         <xml_name>por</xml_name>
         <type>1</type>
         <order>3</order>
         <prefics></prefics>
         <value>1000-5000 евро</value>
         <small_image>
            <value></value>
         </small_image>
      </property>
      <property id="63" dir_id="0" xml_name="kont">
         <name>Контакты</name>
         <xml_name>kont</xml_name>
         <type>1</type>
         <order>4</order>
         <prefics></prefics>
         <value>+79602652691</value>
         <small_image>
            <value></value>
         </small_image>
      </property>
      <property id="61" dir_id="0" xml_name="foto2">
         <name>Фото 2</name>
         <xml_name>foto2</xml_name>
         <type>2</type>
         <order>91</order>
         <prefics></prefics>
         <value>05.06.2012 03:57:09</value>
      </property>
      <property id="61" dir_id="0" xml_name="foto2">
         <name>Фото 2</name>
         <xml_name>foto2</xml_name>
         <type>2</type>
         <order>91</order>
         <prefics></prefics>
         <value>SS857645.JPG</value>
      </property>
      <shop_special_prices>
      </shop_special_prices>
      <warehouses>
         <warehouse id="2">0</warehouse>
      </warehouses>
   </item>
</shop>
Делаю то благодаря чему, несмотря ни на что
Модератор
#
Re: Вывод допоплнительных свойств
suba,
я Вам писал ответ про API 6-й версии, Вы приводите код от пятой версии. Похоже у Вас неправильно перенеслись типы св-в, обратитесь, пожалуйста, к нам в поддержку с данными доступа по ФТП, ЦА и к PhpMyAdmin + ссылка на эту тему.
Модератор
#
Re: Вывод допоплнительных свойств
Проблема была на нашей стороне, решено.
Авторизация