M
M
MaximMRX2018-07-28 09:59:54
1C-Bitrix
MaximMRX, 2018-07-28 09:59:54

BITRIX trade offers, find a parent?

Good day. Interested in this question. There are 218 products on the site, each of them contains trade offers (roughly speaking, trade offers are product modifications).
It looks like this.
Commodity (TABLE)
-- Offers
---- Round
---- Square
----- and so on.
Trade offer ID comes to cart processing. I need to get my parent product. (TABLE)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaximMRX, 2018-07-28
@GM_pAnda

Might be useful to someone

$mxResult = \CCatalogSku::GetProductInfo($id);
  if (is_array($mxResult)){
    echo 'ID товара = '.$mxResult['ID'];
  }else{
    ShowError('Это не торговое предложение');
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question