remove admin_locale

This commit is contained in:
merdan 2022-04-14 16:40:18 +05:00
parent 44cca61481
commit 2005819617
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
namespace Sarga\API\Http\Resources\Checkout;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\Log;
use Sarga\API\Http\Resources\Customer\AddressResource;
use Webkul\Marketplace\Repositories\ProductRepository;
use Webkul\Tax\Helpers\Tax;
@ -73,6 +74,7 @@ class CartResource extends JsonResource
$data = array();
foreach($items as $item){
$seller = $this->sellerProductRepository->getSellerByProductId($item->product_id);
Log::info($seller);
$data[$seller->shop_title ?? 'default'][] = CartItemResource::make($item);
}
return $data;

View File

@ -341,7 +341,7 @@ class ProductRepository extends WProductRepository
}
if($data['vendor'] && $seller = $this->vendorRepository->findOneByField('url',$data['vendor'])){
Log::info('vendor : '.$data['vendor']);
// Log::info('vendor : '.$data['vendor']);
$this->createSellerProduct($parentProduct, $seller->id);
}else{
Log::info('no_create_Seller: '.$data['vendor']);