Доп.свойства товара отображаются только для просмотренных товаров.
Добрый день. Доп.свойства товара отображаются только в просмотренных товарах.
На странице добавляю код
<?
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', 1)
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинКаталогТоваров_NEW_TS')
)
->groupsMode('none')
->group(FALSE)
->itemsProperties(TRUE)
->limit(5);
// Объединение с нужной таблицей свойств
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->leftJoin('shop_item_properties', 'shop_items.shop_id', '=', 'shop_item_properties.shop_id')
->leftJoin('property_value_ints', 'shop_items.id', '=', 'property_value_ints.entity_id',
array(
array('AND' => array('shop_item_properties.property_id', '=', Core_QueryBuilder::expression('`property_value_ints`.`property_id`')))
)
)
// Идентификатор дополнительного свойства
->where('shop_item_properties.property_id', '=', 65)
// Значание дополнительного свойства
->where('property_value_ints.value', '=', '1')
->groupBy('shop_items.id')
// Количество свойств
->having(Core_Querybuilder::expression('COUNT(DISTINCT `shop_item_properties`.`property_id`)'), '=', 1)
;
$Shop_Controller_Show->show();
?>
Получаю xml, в которой доп.свойства отображаются только в просмотренных товарах
<shop id="1">
<shop_dir_id>0</shop_dir_id>
<shop_company_id>1</shop_company_id>
<site_id>1</site_id>
<name>Каталог</name>
<description></description>
<yandex_market_name></yandex_market_name>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<structure_id>42</structure_id>
<shop_country_id>175</shop_country_id>
<shop_currency_id>1</shop_currency_id>
<shop_order_status_id>0</shop_order_status_id>
<shop_measure_id>29</shop_measure_id>
<email>Baton1777@bk.ru</email>
<items_on_page>6</items_on_page>
<url_type>1</url_type>
<reserve>0</reserve>
<send_order_email_admin>1</send_order_email_admin>
<send_order_email_user>1</send_order_email_user>
<items_sorting_field>2</items_sorting_field>
<items_sorting_direction>0</items_sorting_direction>
<groups_sorting_field>1</groups_sorting_field>
<groups_sorting_direction>0</groups_sorting_direction>
<user_id>19</user_id>
<comment_active>1</comment_active>
<watermark_file></watermark_file>
<watermark_default_use_large_image>1</watermark_default_use_large_image>
<watermark_default_use_small_image>1</watermark_default_use_small_image>
<watermark_default_position_x>50%</watermark_default_position_x>
<watermark_default_position_y>100%</watermark_default_position_y>
<guid></guid>
<format_date>%d.%m.%Y</format_date>
<format_datetime>%d.%m.%Y %H:%M:%S</format_datetime>
<typograph_default_items>0</typograph_default_items>
<typograph_default_groups>0</typograph_default_groups>
<apply_tags_automatically>1</apply_tags_automatically>
<write_off_paid_items>1</write_off_paid_items>
<apply_keywords_automatically>0</apply_keywords_automatically>
<change_filename>1</change_filename>
<attach_digital_items>1</attach_digital_items>
<yandex_market_sales_notes_default></yandex_market_sales_notes_default>
<siteuser_group_id>0</siteuser_group_id>
<use_captcha>1</use_captcha>
<group_image_small_max_width>100</group_image_small_max_width>
<group_image_large_max_width>800</group_image_large_max_width>
<group_image_small_max_height>100</group_image_small_max_height>
<group_image_large_max_height>800</group_image_large_max_height>
<producer_image_small_max_width>0</producer_image_small_max_width>
<producer_image_large_max_width>0</producer_image_large_max_width>
<producer_image_small_max_height>0</producer_image_small_max_height>
<producer_image_large_max_height>0</producer_image_large_max_height>
<preserve_aspect_ratio>1</preserve_aspect_ratio>
<preserve_aspect_ratio_small>1</preserve_aspect_ratio_small>
<preserve_aspect_ratio_group>1</preserve_aspect_ratio_group>
<preserve_aspect_ratio_group_small>1</preserve_aspect_ratio_group_small>
<reserve_hours>24</reserve_hours>
<deleted>0</deleted>
<http>//russave.ru</http>
<url>/shop/</url>
<captcha_id>58676</captcha_id>
<items_count>0</items_count>
<items_total_count>41</items_total_count>
<subgroups_count>4</subgroups_count>
<subgroups_total_count>19</subgroups_total_count>
<siteuser_id>0</siteuser_id>
<group>0</group>
<page>0</page>
<limit>5</limit>
<viewed>
<shop_item id="189">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>600</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>0</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. улич. JSH-XV130IR (5-50мм) темн. сер. 1.3Mp, ИК-подсветка</name>
<marking>7898180</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image189.jpg</image_large>
<image_small>small_shop_items_catalog_image189.jpg</image_small>
<weight>0.00</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-ulich-jsh-xv130ir-5-50mm-dark-ser-13-mp-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>F8E57D52-DF78-2150-F9BC-2AC55D21F7A4</guid>
<showed>63</showed>
<length>0.00</length>
<width>0.00</width>
<height>0.00</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/street/video-camera-color-ulich-jsh-xv130ir-5-50mm-dark-ser-13-mp-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 19:46:17</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/8/9/item_189/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>9200.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>9200.00</price_tax>
<currency>руб.</currency>
<property_value id="217">
<property_id>64</property_id>
<entity_id>189</entity_id>
<value>1</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_action</tag_name>
</property_value>
<property_value id="305">
<property_id>65</property_id>
<entity_id>189</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_newproduct</tag_name>
</property_value>
<property_value id="393">
<property_id>66</property_id>
<entity_id>189</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_recommendation</tag_name>
</property_value>
</shop_item>
<shop_item id="166">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>599</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>27</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. JSA-D1200IRU (2.8мм) бел., 1200ТВЛ, UTC, ИК-подсветка</name>
<marking>7899414</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image166.jpg</image_large>
<image_small>small_shop_items_catalog_image166.jpg</image_small>
<weight>270.00</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-jsa-d1200iru-28-mm-bel-tl-utc-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>0B4027FC-009B-13B4-59FB-7026F5422FBC</guid>
<showed>36</showed>
<length>0.00</length>
<width>0.00</width>
<height>0.00</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/dome/video-camera-color-jsa-d1200iru-28-mm-bel-tl-utc-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 16:28:32</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/6/6/item_166/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>3600.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>3600.00</price_tax>
<currency>руб.</currency>
<shop_measure id="27">
<name>шт</name>
<description>штука</description>
<okei>0</okei>
<user_id>19</user_id>
</shop_measure>
<property_value id="195">
<property_id>64</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_action</tag_name>
</property_value>
<property_value id="283">
<property_id>65</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_newproduct</tag_name>
</property_value>
<property_value id="371">
<property_id>66</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_recommendation</tag_name>
</property_value>
</shop_item>
</viewed>
<total>1</total>
<shop_item_properties>
<property id="64">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Акция</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_action</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>F9232670-8F53-4826-577F-AC76B291F565</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
<property id="65">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Новинка</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_newproduct</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>48174FE6-AE29-D363-0285-DDDC42FB7225</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
<property id="66">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Рекомендуем</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_recommendation</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>6942A69B-D1A3-2D9A-FD19-AA3A0154C0C2</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
</shop_item_properties>
<shop_item id="188">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>600</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>0</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. улич. JSH-XV130IR (5-50мм) бел. 1.3Mp, ИК-подсветка</name>
<marking> 7898179</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image188.jpg</image_large>
<image_small>small_shop_items_catalog_image188.jpg</image_small>
<weight>0</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-ulich-jsh-xv130ir-5-50mm-white-13-mp-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>47B5D58B-228D-009A-3C79-37A5CC999601</guid>
<showed>51</showed>
<length>0</length>
<width>0</width>
<height>0</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/street/video-camera-color-ulich-jsh-xv130ir-5-50mm-white-13-mp-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 19:45:31</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/8/8/item_188/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>9200.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>9200.00</price_tax>
<currency>руб.</currency>
</shop_item>
<shop_currency id="1">
<name>руб.</name>
<code>RUB</code>
<exchange_rate>1.000000</exchange_rate>
<date>0000-00-00</date>
<default>1</default>
<sorting>10</sorting>
<user_id>19</user_id>
</shop_currency>
<shop_measure id="29">
<name>г</name>
<description>грамм</description>
<okei>0</okei>
<user_id>19</user_id>
</shop_measure>
<shop_company id="1">
<name>ООО "Инфинити"</name>
<description></description>
<tin>1234567897</tin>
<kpp>123456789</kpp>
<psrn>12345678901</psrn>
<okpo>1234567</okpo>
<okved>68.01</okved>
<bic>024040</bic>
<current_account>40500000000000001</current_account>
<correspondent_account>30700000000000001</correspondent_account>
<bank_name>Сбербанк России ОАО</bank_name>
<bank_address>г. Москва</bank_address>
<legal_name>Иванов И. А.</legal_name>
<accountant_legal_name>Пупкин В. В.</accountant_legal_name>
<address>101000, г. Москва, ул. Тверская, д. 11/7</address>
<phone>(495) 123-45-67</phone>
<fax>(495) 987-65-43</fax>
<site>http://www.hostcms.ru</site>
<email>admin@localhost.ru</email>
<user_id>0</user_id>
<guid></guid>
</shop_company>
<size_measure>
<name>мм</name>
</size_measure>
<shop_warehouse id="1">
<shop_id>1</shop_id>
<name>Основной</name>
<sorting>0</sorting>
<active>1</active>
<default>0</default>
<shop_country_id>0</shop_country_id>
<shop_country_location_id>0</shop_country_location_id>
<shop_country_location_city_id>0</shop_country_location_city_id>
<shop_country_location_city_area_id>0</shop_country_location_city_area_id>
<address></address>
<user_id>0</user_id>
<guid></guid>
</shop_warehouse>
</shop>
В чем может быть проблема?
На странице добавляю код
<?
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', 1)
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('МагазинКаталогТоваров_NEW_TS')
)
->groupsMode('none')
->group(FALSE)
->itemsProperties(TRUE)
->limit(5);
// Объединение с нужной таблицей свойств
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->leftJoin('shop_item_properties', 'shop_items.shop_id', '=', 'shop_item_properties.shop_id')
->leftJoin('property_value_ints', 'shop_items.id', '=', 'property_value_ints.entity_id',
array(
array('AND' => array('shop_item_properties.property_id', '=', Core_QueryBuilder::expression('`property_value_ints`.`property_id`')))
)
)
// Идентификатор дополнительного свойства
->where('shop_item_properties.property_id', '=', 65)
// Значание дополнительного свойства
->where('property_value_ints.value', '=', '1')
->groupBy('shop_items.id')
// Количество свойств
->having(Core_Querybuilder::expression('COUNT(DISTINCT `shop_item_properties`.`property_id`)'), '=', 1)
;
$Shop_Controller_Show->show();
?>
Получаю xml, в которой доп.свойства отображаются только в просмотренных товарах
<shop id="1">
<shop_dir_id>0</shop_dir_id>
<shop_company_id>1</shop_company_id>
<site_id>1</site_id>
<name>Каталог</name>
<description></description>
<yandex_market_name></yandex_market_name>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<structure_id>42</structure_id>
<shop_country_id>175</shop_country_id>
<shop_currency_id>1</shop_currency_id>
<shop_order_status_id>0</shop_order_status_id>
<shop_measure_id>29</shop_measure_id>
<email>Baton1777@bk.ru</email>
<items_on_page>6</items_on_page>
<url_type>1</url_type>
<reserve>0</reserve>
<send_order_email_admin>1</send_order_email_admin>
<send_order_email_user>1</send_order_email_user>
<items_sorting_field>2</items_sorting_field>
<items_sorting_direction>0</items_sorting_direction>
<groups_sorting_field>1</groups_sorting_field>
<groups_sorting_direction>0</groups_sorting_direction>
<user_id>19</user_id>
<comment_active>1</comment_active>
<watermark_file></watermark_file>
<watermark_default_use_large_image>1</watermark_default_use_large_image>
<watermark_default_use_small_image>1</watermark_default_use_small_image>
<watermark_default_position_x>50%</watermark_default_position_x>
<watermark_default_position_y>100%</watermark_default_position_y>
<guid></guid>
<format_date>%d.%m.%Y</format_date>
<format_datetime>%d.%m.%Y %H:%M:%S</format_datetime>
<typograph_default_items>0</typograph_default_items>
<typograph_default_groups>0</typograph_default_groups>
<apply_tags_automatically>1</apply_tags_automatically>
<write_off_paid_items>1</write_off_paid_items>
<apply_keywords_automatically>0</apply_keywords_automatically>
<change_filename>1</change_filename>
<attach_digital_items>1</attach_digital_items>
<yandex_market_sales_notes_default></yandex_market_sales_notes_default>
<siteuser_group_id>0</siteuser_group_id>
<use_captcha>1</use_captcha>
<group_image_small_max_width>100</group_image_small_max_width>
<group_image_large_max_width>800</group_image_large_max_width>
<group_image_small_max_height>100</group_image_small_max_height>
<group_image_large_max_height>800</group_image_large_max_height>
<producer_image_small_max_width>0</producer_image_small_max_width>
<producer_image_large_max_width>0</producer_image_large_max_width>
<producer_image_small_max_height>0</producer_image_small_max_height>
<producer_image_large_max_height>0</producer_image_large_max_height>
<preserve_aspect_ratio>1</preserve_aspect_ratio>
<preserve_aspect_ratio_small>1</preserve_aspect_ratio_small>
<preserve_aspect_ratio_group>1</preserve_aspect_ratio_group>
<preserve_aspect_ratio_group_small>1</preserve_aspect_ratio_group_small>
<reserve_hours>24</reserve_hours>
<deleted>0</deleted>
<http>//russave.ru</http>
<url>/shop/</url>
<captcha_id>58676</captcha_id>
<items_count>0</items_count>
<items_total_count>41</items_total_count>
<subgroups_count>4</subgroups_count>
<subgroups_total_count>19</subgroups_total_count>
<siteuser_id>0</siteuser_id>
<group>0</group>
<page>0</page>
<limit>5</limit>
<viewed>
<shop_item id="189">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>600</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>0</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. улич. JSH-XV130IR (5-50мм) темн. сер. 1.3Mp, ИК-подсветка</name>
<marking>7898180</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image189.jpg</image_large>
<image_small>small_shop_items_catalog_image189.jpg</image_small>
<weight>0.00</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-ulich-jsh-xv130ir-5-50mm-dark-ser-13-mp-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>F8E57D52-DF78-2150-F9BC-2AC55D21F7A4</guid>
<showed>63</showed>
<length>0.00</length>
<width>0.00</width>
<height>0.00</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/street/video-camera-color-ulich-jsh-xv130ir-5-50mm-dark-ser-13-mp-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 19:46:17</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/8/9/item_189/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>9200.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>9200.00</price_tax>
<currency>руб.</currency>
<property_value id="217">
<property_id>64</property_id>
<entity_id>189</entity_id>
<value>1</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_action</tag_name>
</property_value>
<property_value id="305">
<property_id>65</property_id>
<entity_id>189</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_newproduct</tag_name>
</property_value>
<property_value id="393">
<property_id>66</property_id>
<entity_id>189</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_recommendation</tag_name>
</property_value>
</shop_item>
<shop_item id="166">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>599</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>27</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. JSA-D1200IRU (2.8мм) бел., 1200ТВЛ, UTC, ИК-подсветка</name>
<marking>7899414</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image166.jpg</image_large>
<image_small>small_shop_items_catalog_image166.jpg</image_small>
<weight>270.00</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-jsa-d1200iru-28-mm-bel-tl-utc-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>0B4027FC-009B-13B4-59FB-7026F5422FBC</guid>
<showed>36</showed>
<length>0.00</length>
<width>0.00</width>
<height>0.00</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/dome/video-camera-color-jsa-d1200iru-28-mm-bel-tl-utc-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 16:28:32</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/6/6/item_166/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>3600.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>3600.00</price_tax>
<currency>руб.</currency>
<shop_measure id="27">
<name>шт</name>
<description>штука</description>
<okei>0</okei>
<user_id>19</user_id>
</shop_measure>
<property_value id="195">
<property_id>64</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_action</tag_name>
</property_value>
<property_value id="283">
<property_id>65</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_newproduct</tag_name>
</property_value>
<property_value id="371">
<property_id>66</property_id>
<entity_id>166</entity_id>
<value>0</value>
<property_dir_id>0</property_dir_id>
<tag_name>xml_recommendation</tag_name>
</property_value>
</shop_item>
</viewed>
<total>1</total>
<shop_item_properties>
<property id="64">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Акция</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_action</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>F9232670-8F53-4826-577F-AC76B291F565</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
<property id="65">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Новинка</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_newproduct</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>48174FE6-AE29-D363-0285-DDDC42FB7225</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
<property id="66">
<property_dir_id>0</property_dir_id>
<list_id>0</list_id>
<informationsystem_id>0</informationsystem_id>
<shop_id>0</shop_id>
<name>Рекомендуем</name>
<description></description>
<type>7</type>
<default_value>0</default_value>
<tag_name>xml_recommendation</tag_name>
<sorting>0</sorting>
<image_large_max_width>800</image_large_max_width>
<image_large_max_height>800</image_large_max_height>
<image_small_max_width>100</image_small_max_width>
<image_small_max_height>100</image_small_max_height>
<hide_small_image>0</hide_small_image>
<guid>6942A69B-D1A3-2D9A-FD19-AA3A0154C0C2</guid>
<multiple>0</multiple>
<user_id>19</user_id>
<prefix></prefix>
<filter>0</filter>
<show_in_group>0</show_in_group>
<show_in_item>1</show_in_item>
</property>
</shop_item_properties>
<shop_item id="188">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>600</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>0</shop_producer_id>
<shop_measure_id>0</shop_measure_id>
<type>0</type>
<name>Видеокамера цв. улич. JSH-XV130IR (5-50мм) бел. 1.3Mp, ИК-подсветка</name>
<marking> 7898179</marking>
<vendorcode></vendorcode>
<description></description>
<text></text>
<image_large>shop_items_catalog_image188.jpg</image_large>
<image_small>small_shop_items_catalog_image188.jpg</image_small>
<weight>0</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>video-camera-color-ulich-jsh-xv130ir-5-50mm-white-13-mp-ir-illumination</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>100</image_small_height>
<image_small_width>100</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>47B5D58B-228D-009A-3C79-37A5CC999601</guid>
<showed>51</showed>
<length>0</length>
<width>0</width>
<height>0</height>
<deleted>0</deleted>
<url>/shop/video-surveillance-systems/analog-camcorders/street/video-camera-color-ulich-jsh-xv130ir-5-50mm-white-13-mp-ir-illumination/</url>
<date>15.07.2015</date>
<datetime>15.07.2015 19:45:31</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/8/8/item_188/</dir>
<rest>4</rest>
<reserved>0</reserved>
<price>9200.00</price>
<discount>0.00</discount>
<tax>0.00</tax>
<price_tax>9200.00</price_tax>
<currency>руб.</currency>
</shop_item>
<shop_currency id="1">
<name>руб.</name>
<code>RUB</code>
<exchange_rate>1.000000</exchange_rate>
<date>0000-00-00</date>
<default>1</default>
<sorting>10</sorting>
<user_id>19</user_id>
</shop_currency>
<shop_measure id="29">
<name>г</name>
<description>грамм</description>
<okei>0</okei>
<user_id>19</user_id>
</shop_measure>
<shop_company id="1">
<name>ООО "Инфинити"</name>
<description></description>
<tin>1234567897</tin>
<kpp>123456789</kpp>
<psrn>12345678901</psrn>
<okpo>1234567</okpo>
<okved>68.01</okved>
<bic>024040</bic>
<current_account>40500000000000001</current_account>
<correspondent_account>30700000000000001</correspondent_account>
<bank_name>Сбербанк России ОАО</bank_name>
<bank_address>г. Москва</bank_address>
<legal_name>Иванов И. А.</legal_name>
<accountant_legal_name>Пупкин В. В.</accountant_legal_name>
<address>101000, г. Москва, ул. Тверская, д. 11/7</address>
<phone>(495) 123-45-67</phone>
<fax>(495) 987-65-43</fax>
<site>http://www.hostcms.ru</site>
<email>admin@localhost.ru</email>
<user_id>0</user_id>
<guid></guid>
</shop_company>
<size_measure>
<name>мм</name>
</size_measure>
<shop_warehouse id="1">
<shop_id>1</shop_id>
<name>Основной</name>
<sorting>0</sorting>
<active>1</active>
<default>0</default>
<shop_country_id>0</shop_country_id>
<shop_country_location_id>0</shop_country_location_id>
<shop_country_location_city_id>0</shop_country_location_city_id>
<shop_country_location_city_area_id>0</shop_country_location_city_area_id>
<address></address>
<user_id>0</user_id>
<guid></guid>
</shop_warehouse>
</shop>
В чем может быть проблема?
iva
Явных ошибок не вижу, ->itemsProperties(TRUE) указано и у товара должно быть значение свойства 65 "Новинка", версия системы последняя?
Аналогичная ситуация для доп.свойств групп.
Добавление в код ->groupsProperties(TRUE) не решает проблемы.
Версия системы 6.5.4. Редакция "Мой сайт"
iva
ivetta04,
обновите систему до последней версии и обратитесь в поддержку
обновите систему до последней версии и обратитесь в поддержку
Авторизация