ตั้งราคาสำหรับพนักงานโดยเฉพาะหรือราคาเฉพาะเวลา

บทแนะนำต่อไปนี้จะอธิบายว่าคุณควรนำฟีดไปใช้อย่างไรเพื่อแยกความแตกต่างของราคาสำหรับบริการ ตามเจ้าหน้าที่ที่เกี่ยวข้อง หรือช่วงเวลาของวัน และ/หรือวันในสัปดาห์

ราคาต่อเจ้าหน้าที่/เวลา

สิ่งที่ต้องตั้งค่ามี 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 มากกว่า 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) เป็นช่างทำผมที่มีประสบการณ์มากกว่าเจน (รหัส: 2) ดังนั้นเจ้าของร้านเสริมสวยจึงตัดสินใจจองโต๊ะสำหรับ Robert ในราคา $5 ค่าใช้จ่ายในการตัดผมสั้นคือ 600 บาทโดยค่าเริ่มต้น และค่าใช้จ่ายสำหรับการตัดผมยาว 900 บาทโดยค่าเริ่มต้น หากผู้ใช้เลือก Robert ค่าตัดนั้น จะมีค่าใช้จ่าย $25 หรือ $35 ตามลำดับ

ชื่อพนักงาน ตัดผมสั้น ทรงผมยาว
เจนจิรา $20* $30*
โรเบิร์ต $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"]
        }
      ]
    }
  ]
}