diff --git a/src/assets/locals/ar.json b/src/assets/locals/ar.json index 139bd14..1435f1c 100644 --- a/src/assets/locals/ar.json +++ b/src/assets/locals/ar.json @@ -45,6 +45,7 @@ "add": "إضافة", "dineIn": "تناول", "pickup": "استلام", + "car": "سيارة", "sendGift": "إرسال هدية", "roomService": "خدمة الغرف", "officeDelivery": "توصيل للمكتب", diff --git a/src/assets/locals/en.json b/src/assets/locals/en.json index 43ba0bc..5d2c51a 100644 --- a/src/assets/locals/en.json +++ b/src/assets/locals/en.json @@ -45,6 +45,7 @@ "add": "Add", "dineIn": "Dine-in", "pickup": "Pickup", + "car": "Car", "sendGift": "Send a Gift", "roomService": "Room Service", "officeDelivery": "Office Delivery", diff --git a/src/pages/cart/components/CartMobileTabletLayout.tsx b/src/pages/cart/components/CartMobileTabletLayout.tsx index f33ec7e..1971e3a 100644 --- a/src/pages/cart/components/CartMobileTabletLayout.tsx +++ b/src/pages/cart/components/CartMobileTabletLayout.tsx @@ -44,6 +44,7 @@ export default function CartMobileTabletLayout({ const { items, collectionMethod, orderType } = useAppSelector(selectCart); const { isRTL } = useAppSelector((state) => state.locale); const { subdomain } = useParams(); + const { pickup_type } = useAppSelector((state) => state.order.restaurant); const { isMobile, isTablet } = useBreakPoint(); const getResponsiveClass = () => (isTablet ? "tablet" : "mobile"); @@ -237,7 +238,7 @@ export default function CartMobileTabletLayout({ {/* Car Plate*/} - {(orderType === OrderType.Pickup || + {((orderType === OrderType.Pickup && pickup_type === "car") || orderType === OrderType.ScheduledOrder) && } {/* Estimate Time */} diff --git a/src/pages/restaurant/RestaurantServices.tsx b/src/pages/restaurant/RestaurantServices.tsx index 0d2471f..5fc7f61 100644 --- a/src/pages/restaurant/RestaurantServices.tsx +++ b/src/pages/restaurant/RestaurantServices.tsx @@ -36,6 +36,7 @@ export default function RestaurantServices() { is_booking_enabled, delivery, is_schedule_order_enabled, + pickup_type, } = restaurant || {}; const services = [ @@ -57,7 +58,7 @@ export default function RestaurantServices() { ...((pickup && [ { id: OrderType.Pickup, - title: t("common.pickup"), + title: pickup_type === "car" ? t("common.car") : t("common.pickup"), description: t("home.services.pickup"), icon: (