Advertisement
Guest User

Untitled

a guest
May 17th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. $items[] = array(
  2. 'title' => $product['name'] . $option_data,
  3. 'category' => $category,
  4. 'qty' => $product['quantity'],
  5. 'price' => $this->currency->format($product['price'], $order_info['currency_code'], false, false),
  6. );
  7.  
  8. //Товар
  9. $prod = $prods->appendChild($xml->createElement('specificationListRow'));
  10. $cat = $prod->appendChild($xml->createElement('category', substr($category, 0, 40)));
  11. $code = $prod->appendChild($xml->createElement('code', substr(($product['model'] ? $product['model'] : '#123'), 0, 20)));
  12. $d = substr($product['name'] . $option_data, 0, 50);
  13. $descr = $prod->appendChild($xml->createElement('description', $d));
  14. $qty = $prod->appendChild($xml->createElement('amount', $product['quantity']));
  15. $price = $prod->appendChild($xml->createElement('price', $product['price']));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement