Не приходит старая цена

#
Не приходит старая цена
Добрый день,
Вывожу весь список товаров с определенной группы по ее ID вот так:
<?php
  $ids = array(799, 800, 801, 807, 808, 809, 810);                     
   for($i=0; $i<count($ids); $i++){
                           $Shop_Controller_Show = new Shop_Controller_Show(
                              Core_Entity::factory('Shop', 5)
                           );

                     $Shop_Controller_Show
                        ->xsl(
                           Core_Entity::factory('Xsl')->getByName('ТоварыНаГлавной')
                        )
                        // ->groupsMode('tree')
                        ->itemsForbiddenTags(array('text'))
                        ->group($ids[$i])
                        ->limit(9999)
                        ->itemsProperties(TRUE)
                        ->show();                     
   }
?>

У меня там есть товары которые со скидкой, мне необходимо вывести старую цену и новую цену (с учетом скидки)
Вот какой получается XML:
<shop_item id="192">
         <shortcut_id>0</shortcut_id>
         <shop_tax_id>0</shop_tax_id>
         <shop_seller_id>0</shop_seller_id>
         <shop_group_id>639</shop_group_id>
         <shop_currency_id>1</shop_currency_id>
         <shop_id>5</shop_id>
         <shop_producer_id>0</shop_producer_id>
         <shop_measure_id>0</shop_measure_id>
         <type>0</type>
         <name>Кухня &quot;София 3D&quot; 2,2 м</name>
         <marking></marking>
         <vendorcode></vendorcode>
         <description>&lt;p&gt;&lt;span style=&quot;font-family: 'times new roman', times; font-size: medium;&quot;&gt;Цвет: Белый/ Бирюза&lt;/span&gt;&lt;/p&gt;</description>
         <image_large>shop_items_catalog_image192.jpg</image_large>
         <image_small>small_shop_items_catalog_image192.jpg</image_small>
         <weight>0.00</weight>
         <active>1</active>
         <siteuser_group_id>-1</siteuser_group_id>
         <sorting>14</sorting>
         <path>kitchen-sofia-3d-18-m</path>
         <seo_title></seo_title>
         <seo_description></seo_description>
         <seo_keywords></seo_keywords>
         <indexing>1</indexing>
         <image_small_height>239</image_small_height>
         <image_small_width>360</image_small_width>
         <image_large_height>662</image_large_height>
         <image_large_width>1000</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>20</user_id>
         <siteuser_id>0</siteuser_id>
         <modification_id>0</modification_id>
         <guid>D8B203B8-23E6-3A88-79DE-9918850D34AF</guid>
         <showed>31</showed>
         <length>2200.00</length>
         <width>600.00</width>
         <height>0.00</height>
         <apply_purchase_discount>1</apply_purchase_discount>
         <delivery>1</delivery>
         <pickup>1</pickup>
         <store>0</store>
         <deleted>0</deleted>
         <url>/shop/kitchen/turnkey-solutions/kitchen-sofia-3d-18-m/</url>
         <date>03.10.2016</date>
         <datetime>03.10.2016 16:22:16</datetime>
         <start_datetime>0000-00-00 00:00:00</start_datetime>
         <end_datetime>0000-00-00 00:00:00</end_datetime>
         <dir>/upload/shop_5/1/9/2/item_192/</dir>
         <rest>10</rest>
         <reserved>0</reserved>
         <price>18190.00</price>
         <discount>3210.00</discount>
         <tax>0.00</tax>
         <price_tax>18190.00</price_tax>
         <currency>руб.</currency>
         <shop_discount id="8">
            <shop_id>5</shop_id>
            <name>Акция</name>
            <description></description>
            <start_datetime>2016-10-19 10:25:37</start_datetime>
            <end_datetime>2017-10-19 10:25:37</end_datetime>
            <active>1</active>
            <value>15.00</value>
            <type>0</type>
            <user_id>20</user_id>
            <percent>15.00</percent>
         </shop_discount>
         <property_value id="484">
            <property_id>69</property_id>
            <entity_id>192</entity_id>
            <value>1</value>
            <property_dir_id>0</property_dir_id>
            <tag_name>view_index</tag_name>
         </property_value>
         <property_value id="224">
            <property_id>65</property_id>
            <entity_id>192</entity_id>
            <file_name>софия 3д 1,8 м.jpg</file_name>
            <file_description></file_description>
            <file_small_name>софия 3д 1,8 м.jpg</file_small_name>
            <file_small_description></file_small_description>
            <property_dir_id>0</property_dir_id>
            <tag_name>img</tag_name>
            <file size="68611" width="1000" height="735">shop_property_file_192_224.jpg</file>
            <file_small size="68611" width="1000" height="735">small_shop_property_file_192_224.jpg</file_small>
         </property_value>
      </shop_item>

В нем нет почему то старой цены без скидки, что я делаю не так? Как можно это исправить?
Заранее большое спасибо!
Модератор
#
Re: Не приходит старая цена
vanesrilax,
У вас есть:

        
<price>18190.00</price>
<discount>3210.00</discount>


т.е. цена со скидкой и сумма скидки. Старая цена будет считаться как:

<xsl:value-of disable-output-escaping="yes" select="price + discount"/>
Вы только что начали читать предложение, чтение которого вы уже заканчиваете.
#
Re: Не приходит старая цена
Спасибо, я просто не знал что так можно складывать прям в XSL
Авторизация