count on pickup_type : "car" in the restaurant details, for change the service label name and adding car plate number

This commit is contained in:
2025-11-12 23:40:52 +03:00
parent c60c562613
commit 3865a96682
4 changed files with 6 additions and 2 deletions

View File

@@ -45,6 +45,7 @@
"add": "إضافة", "add": "إضافة",
"dineIn": "تناول", "dineIn": "تناول",
"pickup": "استلام", "pickup": "استلام",
"car": "سيارة",
"sendGift": "إرسال هدية", "sendGift": "إرسال هدية",
"roomService": "خدمة الغرف", "roomService": "خدمة الغرف",
"officeDelivery": "توصيل للمكتب", "officeDelivery": "توصيل للمكتب",

View File

@@ -45,6 +45,7 @@
"add": "Add", "add": "Add",
"dineIn": "Dine-in", "dineIn": "Dine-in",
"pickup": "Pickup", "pickup": "Pickup",
"car": "Car",
"sendGift": "Send a Gift", "sendGift": "Send a Gift",
"roomService": "Room Service", "roomService": "Room Service",
"officeDelivery": "Office Delivery", "officeDelivery": "Office Delivery",

View File

@@ -44,6 +44,7 @@ export default function CartMobileTabletLayout({
const { items, collectionMethod, orderType } = useAppSelector(selectCart); const { items, collectionMethod, orderType } = useAppSelector(selectCart);
const { isRTL } = useAppSelector((state) => state.locale); const { isRTL } = useAppSelector((state) => state.locale);
const { subdomain } = useParams(); const { subdomain } = useParams();
const { pickup_type } = useAppSelector((state) => state.order.restaurant);
const { isMobile, isTablet } = useBreakPoint(); const { isMobile, isTablet } = useBreakPoint();
const getResponsiveClass = () => (isTablet ? "tablet" : "mobile"); const getResponsiveClass = () => (isTablet ? "tablet" : "mobile");
@@ -237,7 +238,7 @@ export default function CartMobileTabletLayout({
<CouponCard /> <CouponCard />
{/* Car Plate*/} {/* Car Plate*/}
{(orderType === OrderType.Pickup || {((orderType === OrderType.Pickup && pickup_type === "car") ||
orderType === OrderType.ScheduledOrder) && <CarPlateCard />} orderType === OrderType.ScheduledOrder) && <CarPlateCard />}
{/* Estimate Time */} {/* Estimate Time */}

View File

@@ -36,6 +36,7 @@ export default function RestaurantServices() {
is_booking_enabled, is_booking_enabled,
delivery, delivery,
is_schedule_order_enabled, is_schedule_order_enabled,
pickup_type,
} = restaurant || {}; } = restaurant || {};
const services = [ const services = [
@@ -57,7 +58,7 @@ export default function RestaurantServices() {
...((pickup && [ ...((pickup && [
{ {
id: OrderType.Pickup, id: OrderType.Pickup,
title: t("common.pickup"), title: pickup_type === "car" ? t("common.car") : t("common.pickup"),
description: t("home.services.pickup"), description: t("home.services.pickup"),
icon: ( icon: (
<PickupIcon <PickupIcon