products api

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    Posts
    • #54800
      MarsMars
      Participant

      Hi,
      How can I show the appointment data in the products API , cause it’s not returning them
      here is my products sample

      
      {
          "id": 504,
          "name": "معالج فلير مورفوسيس للشعر",
          "slug": "%d9%85%d8%b9%d8%a7%d9%84%d8%ac-%d9%81%d9%84%d9%8a%d8%b1-%d9%85%d9%88%d8%b1%d9%81%d9%88%d8%b3%d9%8a%d8%b3-%d9%84%d9%84%d8%b4%d8%b9%d8%b1",
          "permalink": "https://beautybooker.net/product/%d9%85%d8%b9%d8%a7%d9%84%d8%ac-%d9%81%d9%84%d9%8a%d8%b1-%d9%85%d9%88%d8%b1%d9%81%d9%88%d8%b3%d9%8a%d8%b3-%d9%84%d9%84%d8%b4%d8%b9%d8%b1/",
          "date_created": "2019-03-14T09:32:29",
          "date_created_gmt": "2019-03-14T09:32:29",
          "date_modified": "2019-03-14T09:32:31",
          "date_modified_gmt": "2019-03-14T09:32:31",
          "type": "appointment",
          "status": "publish",
          "featured": false,
          "catalog_visibility": "visible",
          "description": "",
          "short_description": "<p style=\"box-sizing: border-box; margin: 0px 0px 10px; color: rgb(102, 102, 102); font-family: Cairo; font-size: 14px;\">خدمة منزلية لجميع لاحياء شمال الرياض</p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; color: rgb(102, 102, 102); font-family: Cairo; font-size: 14px;\"><span style=\"box-sizing: border-box; font-family: tahoma, arial, helvetica, sans-serif;\">– يقلل من النفشه وهيشان الشعر و يجعل الشعر أكثر تماسكا وكثافة وحجماً.</span></p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; color: rgb(102, 102, 102); font-family: Cairo; font-size: 14px;\"><span style=\"box-sizing: border-box; font-family: tahoma, arial, helvetica, sans-serif;\"></span><span style=\"box-sizing: border-box; font-family: tahoma, arial, helvetica, sans-serif;\">– علاج آمن للحوامل والاطفال</span></p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; color: rgb(102, 102, 102); font-family: Cairo; font-size: 14px;\"><span style=\"box-sizing: border-box; font-family: tahoma, arial, helvetica, sans-serif;\">– يحتوي على مغذيات شعر طبيعية من مكونات بحرية</span></p>\n",
          "sku": "",
          "price": "200",
          "regular_price": "200",
          "sale_price": "",
          "date_on_sale_from": null,
          "date_on_sale_from_gmt": null,
          "date_on_sale_to": null,
          "date_on_sale_to_gmt": null,
          "price_html": "<span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">ر.س</span>200.00</span> <small class=\"duration\">1 ساعة واحدة</small>",
          "on_sale": false,
          "purchasable": true,
          "total_sales": 0,
          "virtual": false,
          "downloadable": false,
          "downloads": [],
          "download_limit": -1,
          "download_expiry": -1,
          "external_url": "",
          "button_text": "",
          "tax_status": "taxable",
          "tax_class": "",
          "manage_stock": false,
          "stock_quantity": null,
          "stock_status": "instock",
          "backorders": "no",
          "backorders_allowed": false,
          "backordered": false,
          "sold_individually": false,
          "weight": "",
          "dimensions": {
              "length": "",
              "width": "",
              "height": ""
          },
          "shipping_required": true,
          "shipping_taxable": true,
          "shipping_class": "",
          "shipping_class_id": 0,
          "reviews_allowed": true,
          "average_rating": "0.00",
          "rating_count": 0,
          "related_ids": [
              494,
              501,
              483,
              499
          ],
          "upsell_ids": [],
          "cross_sell_ids": [],
          "parent_id": 0,
          "purchase_note": "",
          "categories": [
              {
                  "id": 47,
                  "name": "شعر",
                  "slug": "%d8%b4%d8%b9%d8%b1"
              },
              {
                  "id": 50,
                  "name": "معالج",
                  "slug": "%d9%85%d8%b9%d8%a7%d9%84%d8%ac"
              }
          ],
          "tags": [],
          "images": [
              {
                  "id": 503,
                  "date_created": "2019-03-14T09:31:48",
                  "date_created_gmt": "2019-03-14T09:31:48",
                  "date_modified": "2019-03-14T09:32:31",
                  "date_modified_gmt": "2019-03-14T09:32:31",
                  "src": "https://beautybooker.net/wp-content/uploads/2019/03/23795845_882670895245007_3514183874787299270_n_6.jpg",
                  "name": "23795845_882670895245007_3514183874787299270_n_6",
                  "alt": ""
              }
          ],
          "attributes": [],
          "default_attributes": [],
          "variations": [],
          "grouped_products": [],
          "menu_order": 0,
          "meta_data": [
              {
                  "id": 10198,
                  "key": "_wcfm_new_product_notified",
                  "value": "yes"
              },
              {
                  "id": 10199,
                  "key": "_product_addons",
                  "value": [
                      {
                          "name": "",
                          "type": "heading",
                          "description": ""
                      },
                      {
                          "name": "",
                          "title_format": "hide",
                          "type": "custom_price",
                          "restrictions_type": "",
                          "description": "",
                          "description_enable": 0,
                          "required": 0,
                          "min": "",
                          "max": "",
                          "restrictions": 0,
                          "price": "",
                          "price_type": "quantity_based",
                          "adjust_price": 0
                      }
                  ]
              },
              {
                  "id": 10200,
                  "key": "_product_addons_exclude_global",
                  "value": "0"
              },
              {
                  "id": 10201,
                  "key": "wcfm_policy_product_options",
                  "value": {
                      "0": "",
                      "policy_tab_title": "السياسات",
                      "shipping_policy": "<p>سياسة الحجز والالغاء:- في حال الدفع نقدا سيكون هناك مبلغ إضافي بقيمة -عند حجز موعد يلتزم العميل بالانتظار لمدة 120 دقيقة حتى يتم تأكيد الحجز -يمكنك الغاء الحجز قبل موعد الخدمة ب 14 يوم واسترداد كامل المبلغ في حسابة البنكي بعد خصم العمولات البنكية خلال 30 يوم عمل-في حال تم الغاء الحجز قبل موعد الخدمة بأقل من 14 يوم يحق للعميل استرداد 90% من قيمة الحجز واسترداد باقي المبلغ في حسابة البنكي بعد خصم العمولات البنكية خلال 30 يوم عمل، وفي حال الدفع النقدي سيكون رصيد العميل في التطبيق سالب 10% من قيمة الحجز الملغى ولا يمكن القيام بحجز جديد الا بعد التسديد. -في حال تأخر العميلة عن الموعد لأكثر من 15 دقيقة سيتم احتساب رسوم 2 ريال عن كل دقيقة تأخير إضافية.-يسمح بطلب رقم خبيرة التجميل قبل الموعد ب 24 ساعة فقط، وفي حال طلبة قبل ذلك سيتم إيقاف حساب العميل لمدة 48 ساعة.- يحتفظ تطبيق (beauty Booker) بالحق في قبول او رفض الحجوزات</p>",
                      "refund_policy": "<p>يخضع استخدام هذا التطبيق للشروط والاحكام التالية.-الالتزام بكافة القوانين السارية ذات الصلة باستخدام التطبيق .-الالتزام بتسجيل معلومات صحيحة وغير وهمية. -هذا التطبيق وسيط بين خبيرة التجميل والعميلة ولا يتحمل مسؤولية أي مخالفة من قبل الخبيرة او العميلة.- عدم استخدام التطبيق لنشر او بث معلومات غير قانونية او تهديدات او التشهير بالآخرين او بتشويه سمعتهم اوالسلوكيات اللاأخلاقية أو المواد التي تخضع للمسائلة القانونية .-عدم التسبب في الحاق الضرر بالتطبيق- يحتفظ تطبيق (beauty Booker) لخدمة حجز مواعيد التجميل – بحق تعديل الشروط والاحكام وشروط الاستخدام الماثلة في اي وقت وبدون اشعار مسبق وانك توافق عل ان كل زيارة تقوم بها الى التطبيق سوف تخضع الى شروط الاستخدام السارية المفعول في ذلك الوقت.</p>",
                      "cancellation_policy": "<p><br></p>"
                  }
              },
              {
                  "id": 10837,
                  "key": "_product_addons_old",
                  "value": [
                      {
                          "type": "custom_price",
                          "name": "",
                          "position": 0,
                          "description": "",
                          "options": [
                              {
                                  "label": "",
                                  "price": "",
                                  "min": "",
                                  "duration": "",
                                  "max": ""
                              }
                          ],
                          "required": 0
                      }
                  ]
              },
              {
                  "id": 10838,
                  "key": "_product_addons_converted",
                  "value": "yes"
              },
              {
                  "id": 10948,
                  "key": "_wcfm_product_views",
                  "value": "20"
              }
          ],
          "better_featured_image": null,
          "_links": {
              "self": [
                  {
                      "href": "https://beautybooker.net/wp-json/wc/v3/products/504"
                  }
              ],
              "collection": [
                  {
                      "href": "https://beautybooker.net/wp-json/wc/v3/products"
                  }
              ]
          }
      }
      
    • #54963
      WCFM Forum
      Keymaster

      Hi,

      Appointment product or Appointment details?

      Between, WC Appointments plugin support WC REST API, please confirm this from it’s author!

      Thank You

    • #54967
      MarsMars
      Participant

      both
      I asked they told me I should use wc rest API
      but I do not know how to get it and they are not providing any details about how part

    • #55015
      WCFM Forum
      Keymaster

      HI,

      but I do not know how to get it and they are not providing any details about how part

      – that’s the problem, WC Appointments does not have WC REST API support.

      Well, we will add vendor wise appointments list API very soon.

      Thank You

Viewing 3 reply threads
  • The topic ‘products api’ is closed to new replies.