Advertisement
nikitafrolov

Untitled

Jul 21st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. $calculating_params = array(
  2.                 "id"      => 1,
  3.                 "jsonrpc" => "2.0",
  4.                 "method"  => "calculateShipping",
  5.                 "params"  => array(
  6.                     "length"        => $productWorker->getLength(),
  7.                     "width"         => $productWorker->getWidth(),
  8.                     "height"        => $productWorker->getHeight(),
  9.                     "weight"        => $productWorker->getTotalWeight($products),
  10.                     "cod"           => (int)$this->getTotalPrice(),
  11.                     "declared_cost" => (int)$this->getTotalPrice(),
  12.                     "kladr_id_from" => $this->settings['kladr_from'],
  13.                     //"courier"         => "dpd",
  14.                     "kladr_id"      => $cityWorker->getCityKLADR($address['region'], $address['city'])
  15.                 ),
  16.             );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement