$offer->addChild('weight', $product['weight']);
$offer->addChild('qty', $product['qty']);
$offer->addChild('amount', $product['amount']);
+ $offer->addChild('cost', $product['amount']);
foreach ($product['composition'] as $component) {
$consist = $offer->addChild('consist', $component['quantity']);
}
private static function getProductOldPrice($productId) { return null; }
private static function getProductDescription($productId) { return 'Описание'; }
- private static function getProductQty($productId) { return 5; }
+ private static function getProductQty($productId) { return 10; }
private static function getProductWeight($productId) {
return 0.5;
}