Получить id товаров после заказа

Здравствуйте, я в modx только начал работать и возникла такая задача, после успешного сделанного заказа вывести
— ID заказа
— сумму заказа
— все ID товаров, которые пользователь заказал (добавил в корзину)

Order Id получаю
сумму заказа тоже

а вот ID товаров не знаю как получить…

вот какой код имеется на странице успешного заказа

[[!msGetOrder?
    id=`[[+id]]`
    &tplRow=`tpl.msGetOrder.row.custom`
]]

<h3>[[%ms2_frontend_order_success]]</h3>

<div id="msCart">
	<div class="cart-table item-shadow">
        <table>
            <tr>
                <th style="min-width: 524px">Наименование</th>
                <th style="min-width: 104px;">Количество</th>
                <th style="min-width: 104px">Вес</th>
                <th style="min-width: 144px;">Цена</th>
            </tr>
            <tr class="tb-total-mob">
                <td>Итого: <span>3</span> товара на <span>82 475</span> руб.</td>
            </tr>
            [[+goods]]
            
            <tr class="tb-total">
                <td><span>Итого:</span></td>
                <td>[[+cart_count]] шт.</td>
                <td>[[+cart_weight]] кг.</td>
                <td><p>[[+cart_cost]] руб.</p></td>
                
            </tr>
            <tr class="tb-total-mob">
                <td>Итого: <span>[[+cart_count]]</span> товара на <span>[[+cart_cost]]</span> руб.</td>
            </tr>
        </table>
    </div>
	<h4>[[+delivery_cost:is=`0`:then=`Итого`:else=`Итого, с доставкой`]]: [[+delivery_cost:is=`0`:then=``:else=`[[+cart_cost]] [[%ms2_frontend_currency]]  + [[+delivery_cost]] [[%ms2_frontend_currency]] = `]]<big>[[+cost]]</big> [[%ms2_frontend_currency]]</h4>
</div>

<script>
DSPCounter('send', {
	'sz': 'order',
	'custom': {
		10: '[[...]]',// Получить все ID товаров которые в корзине
		150: '[[+id]]',
		151: '[[+cart_cost]]'
	}
});
</script>
на сайте имеется папка чанков minishop2 и папка «Магазин» с чанками

msProduct.content.custom (51)
tpl.msCart.outer.custom (57)
tpl.msCart.row.custom (58)
tpl.msEmail.new.manager.custom (91)
tpl.msEmail.new.user.custom (90)
tpl.msGallery.empty.custom (68)
tpl.msGallery.outer.custom (67)
tpl.msGallery.row.custom (81)
tpl.msGetOrder.row.custom (92)
tpl.msMiniCart.custom (71)
tpl.msOrder.delivery.custom (53)
tpl.msOrder.outer.custom (54)
tpl.msOrder.payment.custom (55)
tpl.msOrder.success.custom (56)
tpl.msProducts.row.action (46)
tpl.msProducts.row.custom (48)
tpl.msProducts.row.search (93)

Помогите с этой задачей…

Если нужна еще информация — выложу

Тут нужно пустить цикл по товарам в корзине и вытащить id

что то типа:

foreach($order_products as order_product)
{
//получить ID товаров в корзине
}

но чанки не поддерживают же код php и я не знаю как делать…
umi
umi
25 октября 2016, 14:25
modx.pro
1 281
0

Комментарии: 0

Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
0