Ejemplo n.º 1
0
 /**
  * @param StoreEntity $store
  * @param CatalogEntity $catalog
  * @param ErpProductEntity $product
  */
 public function getProductExtraInformation(StoreEntity $store, CatalogEntity $catalog, ErpProductEntity $product)
 {
     $request = $this->client->createRequest('GET', sprintf('%s/catalogs/%s/%s/all', $store->getErpUrl(), $catalog->getCatalogName(), $product->getSku()), ['auth' => [$store->getErpUsername(), $store->getErpPassword()]]);
     $response = $this->sendRequest($request)->xml();
     ErpProductEntity::updateProduct($product, $response);
 }