آموزش زیر توضیح می دهد که چگونه باید فیدهای خود را برای متمایز کردن قیمت یک سرویس بر اساس کارمند مرتبط یا زمان روز و/یا روز هفته پیاده سازی کنید.
قیمت هر کارمند/زمان
4 چیز برای تنظیم وجود دارد:
در فید Merchant، یک
Merchant.payment_option
را برای هر گزینه قیمت تنظیم کنید-
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
در کل ادغام شما منحصربهفرد است.
- هنگامی که برای قیمت گذاری در سطح دسترسی (مورد استفاده از این آموزش) استفاده می شود، نام و توضیحات عمدتاً برای اهداف اشکال زدایی استفاده می شود.
- بیش از 100 مقدار
payment_option
را برای یک تاجر تنظیم نکنید. اگر انتظار دارید به بیش از 100 مقدارpayment_option
برسید، لطفاً این پیاده سازی را توسط مخاطب Google خود اجرا کنید - تمام فیلدهای
payment_option
دیگر را می توان برای این مورد نادیده گرفت
- برای قیمت هر کارمند، توصیه میکنیم
-
در فید Availability،
Availability.payment_option_id
را روی یک آرایه واحد باpayment_option_id
مربوط بهpayment_option
که در سطحMerchant
تعریف کردهاید، تنظیم کنید.در فید Service،
Service.price
را روی کمترین مقدار محدوده قیمت برای این سرویس تنظیم کنید وService.price_interpretation
را رویSTARTS_AT
تنظیم کنید.
نمونه قیمت به ازای پرسنل
در این مثال، رابرت (id: 1) آرایشگری باتجربهتر از جین (id: 2) است و بنابراین صاحب سالن تصمیم گرفته است برای رابرت 5 دلار گرانتر رزرو کند. هزینه کوتاه کردن مو به طور پیش فرض 20 دلار و هزینه کوتاه کردن موی بلند به طور پیش فرض 30 دلار است. اگر کاربر رابرت را انتخاب کند، هزینه برش به ترتیب 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 باز است. صاحب سالن تصمیم گرفت برای رزرو بعد از ساعت 18:00 هزینه اضافی 5 دلاری اضافه کند.
نمونه در دسترس بودن برای شنبه، 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"] } ] } ] }