top of page
Forum Posts
Nikhil Dandeker
May 13, 2022
In Coding with Velo
I have my series split into categories but I am unable to retrieve that value from any table(Bookings/Services). Where can it be found? Service category screenshot: (Note Orange highlight is mine)
0
0
21
Nikhil Dandeker
Apr 07, 2022
In Coding with Velo
Has anyone found an elegant way to make this work? Storing data from the addressInput element to the member is relatively easy. But when you retrieve the member data address object, the formatted value required for working with the AddressInput(ref:https://www.wix.com/velo/reference/$w/addressinput/value) is missing. I could manually generate it from the constituent fields, but this seems overly complicated.
0
0
9
Nikhil Dandeker
Apr 06, 2022
In Coding with Velo
I am trying to use Wix booking to sell a service. I have restrictions around who can sign up for which service. My primary flow works - the user gets to my site, enters zip code, goes to a custom booking page tailored for their geo, picks one of the services available to their area and books the service. Now in order for the customer to see their orders, save their wallet, profile, etc., I have a members area. The problem is that when customer login and see their services, there are 2 customers paths that go back into the non-custom vanilla Wix flow. 1) Customer can click on reschedule and go to the vanilla wix flow that bypasses all my checks. 2) Despite my best effort to hide the All Services page, once the user logins in, the "Booking checkout" option shows up on the top menu under More. This leads to the All Services page which breaks out of the custom flow I've built. How do I get rid of these links or better still redirect into my custom flow? I notice that the custom Velo booking flow does not talk about any rescheduling functionality in the documentation. (https://support.wix.com/en/article/velo-tutorial-creating-a-custom-bookings-experience).
0
0
10
Nikhil Dandeker
Apr 05, 2022
In Coding with Velo
I am convinced none of the update APIs work with custom fields. Can someone show me sample code that works with custom fields *AND* actually updates the backend? Here is what all I have tried - First off, I have two fields whitelisted or entered as custom fields with text values in the member/contact area. I copy pasted the names into code to ensure I wasn't messing up the spelling of the field. Fetching from both request/responsese from logs - Attempt 1: old API(users) - as a simple string value Request: [{"customFields":{"DeliveryInstructions":"abc"}}] // I added the user ID to the request as well - I am simply showing the core part of the request Response: ["server responded with - {\"message\":\"Unexpected value for StringValue\",\"details\":{}} (400)"]" Attempt 2: old API(users) - with value string as object Request: [{"customFields":{"DeliveryInstructions":{"0":"a","1":"b","2":"c","3":"s","4":"s","5":"s"}}}] // I added the user ID to the request as well - I am simply showing the core part of the request Response: "["server responded with - {\"message\":\"Unexpected value for StringValue\",\"details\":{}} (400)"]" Attempt 3: New API(members) - with value as object Request: "[{"contactDetails":{"customFields":{"DeliveryInstructions":{"0":"a","1":"b","2":"c"}}}}]" // I added the user ID to the request as well - I am simply showing the core part of the request Response: "[{"_id":"4174fa35-1d92-4953-ac03-77a7c913e967","loginEmail":"XXX@yahoo.com","status":"APPROVED","contactId":"4174fa35-1d92-4953-ac03-77a7c913e967","privacyStatus":"PRIVATE","activityStatus":"ACTIVE","_createdDate":"2022-03-30T06:29:31.000Z","_updatedDate":"2022-03-30T06:29:31.182Z","lastLoginDate":"2022-03-31T06:45:33.000Z","contactDetails":{"firstName":"XXX","lastName":"XXX","phones":["123"],"emails":["XXX"],"addresses":[{"_id":"b10d7f54-e401-4ff6-a8d0-e3f2c6ff6c7e","addressLine":"XXX"}],"customFields":{}},"profile":{"nickname":"XXX","slug":"XXX"}}]" Note: All XXX/123 are PII which I have hidden. Here the call succeeds but nothing is actually written to the backend, since 1) it is not returned in the response and 2) is also not available in the contact/member detail via the Wix frontend Attempt 4: New API (members) - with value as a string Request: "[{"contactDetails":{"customFields":{"DeliveryInstructions":"abc"}}}]" // I added the user ID to the request as well - I am simply showing the core part of the request Response: "["message: Expected an object\ndetails:\n applicationError:\n description: Bad Request\n code: BAD_REQUEST\n data: {}"]"
0
8
262
Nikhil Dandeker
More actions
bottom of page