Cloudkibo / KiboPush

0 stars 1 forks source link

Cancel order flow in commerce chatbot, chatbot layer #11022

Closed sojharo closed 3 years ago

sojharo commented 3 years ago

Coming from Sapphire issue https://github.com/Cloudkibo/KiboPush/issues/10825

This is the server side work on chatbot layer to implement cancel order option in messenger and whatsapp chatbot.

saniasiddiqui commented 3 years ago

I have added cancel blocks in this task for messenger and whatsapp chatbots. Once work from #11023 is done it can be integrated and tested. Commit: https://github.com/Cloudkibo/KiboChat/commit/9f55ebca85f672cc9ace13e60477680974b7b4dd

jekram commented 3 years ago

@saniasiddiqui Please go ahead and move the code to production

sojharo commented 3 years ago

This is working fine on production.

sojharo commented 3 years ago

As per discussion in today's meeting: Please do the following things here:

  1. show in order details that order is cancelled
  2. show in orders list that the order is cancelled
  3. when customer cancels the fulfilled order, we should send him the message that this order is already in shipment and please contact agent.
sojharo commented 3 years ago

I have tested it after @saniasiddiqui changes. This is working fine now.

ImranBinShoukat commented 3 years ago

I am reopening this task as we need to change the workflow as per Sapphire suggestion. It should not automatically cancel the order from shopify. It should just say that we have received your request and our agent will get back to you soon. The exact message should be:

Dear Valuable Customer,

Thank you for contacting Sapphire. We have received the cancellation ‘Request’ of your order number XYZ. One of our representative will contact you shortly for further details and confirmation.

Warm regards, Sapphire Customer Care UAN: +92(042) 111-738-245

saniasiddiqui commented 3 years ago

Following changes have been done here:

  1. We have added confirmation block: Are you sure you want to cancel
  2. We have changed the cancelation block to include the revised message
  3. Instead of canceling order, we are making a request by tagging that order as 'cancel-request'. In this way it can be filtered from the orders in shopify. I have done the shopify API work in this task as well.
  4. Included the STATUS: Request open for cancelation in the order status block.
  5. The work has been done for both whatsapp and messenger.
sojharo commented 3 years ago

This is working fine.

jekram commented 3 years ago

I have tested this.

Two things

  1. We need to have setting if order cancellation enabled of not
  2. If It is enabled what is the message

WE need to do the same thing with Returned

sojharo commented 3 years ago

Yes, I have opened client side task for doing settings UI to add these options in following issue for both cancel and return: https://github.com/Cloudkibo/KiboPush/issues/11057