Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $items[] = array(
- 'title' => $product['name'] . $option_data,
- 'category' => $category,
- 'qty' => $product['quantity'],
- 'price' => $this->currency->format($product['price'], $order_info['currency_code'], false, false),
- );
- //Товар
- $prod = $prods->appendChild($xml->createElement('specificationListRow'));
- $cat = $prod->appendChild($xml->createElement('category', substr($category, 0, 40)));
- $code = $prod->appendChild($xml->createElement('code', substr(($product['model'] ? $product['model'] : '#123'), 0, 20)));
- $d = substr($product['name'] . $option_data, 0, 50);
- $descr = $prod->appendChild($xml->createElement('description', $d));
- $qty = $prod->appendChild($xml->createElement('amount', $product['quantity']));
- $price = $prod->appendChild($xml->createElement('price', $product['price']));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement