|
@@ -105,7 +105,14 @@ class CustomerOrderProvider implements ProviderInterface
|
|
|
*/
|
|
*/
|
|
|
private function baseOrderDetailsQuery()
|
|
private function baseOrderDetailsQuery()
|
|
|
{
|
|
{
|
|
|
- return CustomerOrder::with(['items', 'addresses', 'payment', 'shipments.items', 'shipments.shippingAddress']);
|
|
|
|
|
|
|
+ return CustomerOrder::with([
|
|
|
|
|
+ 'items.product.images',
|
|
|
|
|
+ 'items.children.product.images',
|
|
|
|
|
+ 'addresses',
|
|
|
|
|
+ 'payment',
|
|
|
|
|
+ 'shipments.items',
|
|
|
|
|
+ 'shipments.shippingAddress',
|
|
|
|
|
+ ]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private function resolveOrderId(array $uriVariables): int
|
|
private function resolveOrderId(array $uriVariables): int
|
|
@@ -185,7 +192,14 @@ class CustomerOrderProvider implements ProviderInterface
|
|
|
$args = $context['args'] ?? [];
|
|
$args = $context['args'] ?? [];
|
|
|
$filters = $context['filters'] ?? [];
|
|
$filters = $context['filters'] ?? [];
|
|
|
|
|
|
|
|
- $query = CustomerOrder::with(['items', 'addresses', 'payment', 'shipments.items', 'shipments.shippingAddress'])
|
|
|
|
|
|
|
+ $query = CustomerOrder::with([
|
|
|
|
|
+ 'items.product.images',
|
|
|
|
|
+ 'items.children.product.images',
|
|
|
|
|
+ 'addresses',
|
|
|
|
|
+ 'payment',
|
|
|
|
|
+ 'shipments.items',
|
|
|
|
|
+ 'shipments.shippingAddress',
|
|
|
|
|
+ ])
|
|
|
->where('customer_id', $customer->id)
|
|
->where('customer_id', $customer->id)
|
|
|
->where('customer_type', Customer::class);
|
|
->where('customer_type', Customer::class);
|
|
|
|
|
|