Example #1
0
 public function imported()
 {
     return view('importer.products.success', ['data' => ImportedProduct::all()]);
 }
Example #2
0
 private function getWooProductId($id)
 {
     $customer = ImportedProduct::where('os_id', '=', $id)->get()->first();
     if (isset($customer['wc_id'])) {
         return $customer['wc_id'];
     }
     throw new Exception("the product has not been imported yet.");
 }