บทแนะนำต่อไปนี้อธิบายวิธีที่คุณควรใช้ฟีดเพื่อแยกราคาของบริการตามพนักงานที่เกี่ยวข้องหรือช่วงเวลาของวันและ/หรือวันในสัปดาห์
ราคาต่อเจ้าหน้าที่/เวลา
คุณต้องตั้งค่า 4 สิ่งต่อไปนี้
ในฟีดผู้ขาย ให้ตั้งค่า
Merchant.payment_option
1 รายการสำหรับตัวเลือกราคาแต่ละรายการ- ตั้งค่า
price
ที่ต้องการเป็นราคาของบริการสำหรับเวลา/เจ้าหน้าที่ที่เจาะจง payment_option_id
ต้องไม่ซ้ำกันในการผสานรวม เนื่องจากระบบจะแชร์ค่าpayment_option_id
กับผู้ขายทั้งหมดของผู้ให้บริการรวบรวมข้อมูลรายเดียวกัน เราขอแนะนำให้คุณกำหนดค่าpayment_option
ทั้งหมดที่ผู้ขายรายนี้ใช้ใหม่ด้วยpayment_option_id
ที่ไม่ซ้ำกัน (แม้ว่าผู้ขายรายอื่นจะใช้payment_option
เดียวกันก็ตาม) เพื่อป้องกันความสับสนและลดความซับซ้อนในการแก้ปัญหาและการจัดการสำหรับแต่ละผู้ขาย- สำหรับราคาต่อพนักงาน เราขอแนะนำให้คุณสร้าง
payment_option_id
โดยใช้merchant_id
,service_id
และstaff_id
ร่วมกันเพื่อให้ติดตามได้ง่ายขึ้นและเพื่อให้payment_option_id
แต่ละรายการไม่ซ้ำกันตลอดการผสานรวม - สำหรับราคาต่อครั้ง เราขอแนะนำให้คุณสร้าง
payment_option_id
โดยการรวมmerchant_id
,service_id
และสตริงที่แสดงถึงช่วงเวลานี้ (evening
,weekends
,sundayafternoon
...) เพื่อให้ติดตามได้ง่ายขึ้นและเพื่อให้payment_option_id
ไม่เหมือนใครในการผสานรวมทั้งหมด
payment_option
สูญหาย- เมื่อใช้สำหรับการกำหนดราคาตามระดับห้องว่าง (Use Case ของบทแนะนำนี้) ชื่อและคําอธิบายจะใช้เพื่อวัตถุประสงค์ในการแก้ไขข้อบกพร่องเป็นหลัก
- อย่าตั้งค่า
payment_option
มากกว่า 100 ค่าสำหรับผู้ขายรายเดียว หากคาดว่าจะมีค่าpayment_option
มากกว่า 100 รายการ โปรดติดตั้งใช้งานนี้โดยติดต่อตัวแทนของ Google - ระบบจะละเว้นฟิลด์
payment_option
อื่นๆ ทั้งหมดสำหรับ Use Case นี้
- สำหรับราคาต่อพนักงาน เราขอแนะนำให้คุณสร้าง
- ตั้งค่า
ในฟีดความพร้อมจำหน่าย ให้ตั้งค่า
Availability.payment_option_id
เป็นอาร์เรย์รายการเดียวที่มีpayment_option_id
ของpayment_option
ที่คุณกำหนดไว้ในระดับMerchant
ในฟีดบริการ ให้ตั้งค่า
Service.price
เป็นค่าต่ำสุดของช่วงราคาสำหรับบริการนี้ และตั้งค่าService.price_interpretation
เป็นSTARTS_AT
ตัวอย่างราคาต่อเจ้าหน้าที่
ในตัวอย่างนี้ Robert (รหัส: 1) เป็นช่างทำผมที่มีประสบการณ์มากกว่า Jane (รหัส: 2) เจ้าของร้านจึงตัดสินใจจองเวลาให้ Robert ในราคาที่แพงกว่า $5 โดยค่าเริ่มต้น การตัดผมสั้นจะคิดราคา 600 บาท และการตัดผมยาวจะคิดราคา 900 บาท หากผู้ใช้เลือก Robert การตัดต่อจะมีราคา $25 หรือ $35 ตามลำดับ
ชื่อเจ้าหน้าที่ | การตัดผมสั้น | การตัดผมยาว |
---|---|---|
Jane | $20* | $30* |
Robert | $25 | $35 |
*ราคาเริ่มต้นสำหรับบริการ
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-staff-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-staff-price-haircut-short-1", "name": "Short haircut (Robert)", "description": "Short hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-short-default", "name": "Short haircut (Default)", "description": "Normal short hair haircut price", "price": { "currency_code": "USD", "price_micros": 20000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-1", "name": "Long haircut (Robert)", "description": "Long hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-default", "name": "Long haircut (Default)", "description": "Normal long hair haircut price", "price": { "currency_code": "USD", "price_micros": 30000000 } } ] } ] }
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 20000000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 30000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-default"] } ] } ] }
ตัวอย่างราคาต่อครั้ง
ในตัวอย่างนี้ ร้านเสริมสวยเปิดตั้งแต่ 10:00-20:00 น. เจ้าของร้านเสริมสวยตัดสินใจที่จะเพิ่มค่าบริการอีก $5 สำหรับลูกค้าที่จองหลังเวลา 18:00 น.
ตัวอย่างความพร้อมจำหน่ายสินค้ากำหนดไว้สำหรับวันเสาร์ที่ 1 กันยายน 2018 ตามเขตเวลา PT 1535821200 คือ 10:00 น. ของวันนั้น 1535850000 คือ 18:00 น. ของวันนั้น และ 1535857200 คือ 20:00 น.
ช่วงเวลาของวัน | การตัดผมสั้น | การตัดผมยาว |
---|---|---|
10:00 ~ 11:00 | $20 | $30 |
11:00 ~ 12:00 | $20 | $30 |
12:00 ~ 13:00 | $20 | $30 |
13:00 ~ 14:00 | $20 | $30 |
14:00 ~ 15:00 | $20 | $30 |
15:00 ~ 16:00 | $20 | $30 |
16:00 ~ 17:00 | $20 | $30 |
17:00 ~ 18:00 | $20 | $30 |
18:00 ~ 19:00 | $25 | $35 |
19:00 ~ 20:00 | $25 | $35 |
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-time-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-time-price-haircut-short-evening", "name": "Short haircut (Evening)", "description": "Short hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-short-default", "name": "Short haircut (Normal)", "description": "Short hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 21000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-evening", "name": "Long haircut (Evening)", "description": "Long hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-default", "name": "Long haircut (Normal)", "description": "Long hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 31000000 } } ] } ] }
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 2100000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 31000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-default"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-evening"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-evening"] } ] } ] }