woocommerce-plugin icon indicating copy to clipboard operation
woocommerce-plugin copied to clipboard

Send email on new order

Open blockonomics opened this issue 5 years ago • 10 comments

Send email to customer with way to pay Template should be editable by merchant

blockonomics avatar Oct 29 '19 11:10 blockonomics

This is requested by a few customers. We need to add this into our customizing checkout page article.

The complication here is the that we email cannot have BTC amount to pay since BTC amount is only fixed for 10 minutes(price is always changing). So the alternative here

  • Send the invoice having order details
  • Invoice will have prominent pay with bitcoin button. On clicking that anytime customer is taken to normal payment page (as seen on checkout)

shivaenigma avatar Feb 24 '20 06:02 shivaenigma

This has also been requested by more customers . Tagging for discussion

blockonomics avatar Aug 08 '22 06:08 blockonomics

I will look into this.

anktd avatar Aug 08 '22 06:08 anktd

Also Tagging @DarrenWestwood and @thisisayush for thoughts

blockonomics avatar Aug 08 '22 06:08 blockonomics

A Suggestion, as per the customer's request what he needs is a way to open the checkout on Mobile Device, or let's just say any other device. We can add an option like "Continue on another device", which can create a Scannable QR containing the current checkout page URL. The user can easily scan the code to open the Checkout Page on Mobile and scan it with ATM's QR Reader.

We can also implement Browser's Share API to engage the system's Share Dialog and users can choose to share the URL as per their needs (including Mail), the thing is why restrict it to just mail? This option might not work in Non-JS Environment though, but it can be easily replaced with a Click to Copy and Share URL.

We can use a URL Shortener (https://redr.me/) to shorten links.

thisisayush avatar Aug 09 '22 03:08 thisisayush

How woocommerce is sending an Invoice?

Woocommerce allows merchants to send an invoice for any order created. It emails invoice with checkout page url. This is not automatic and merchant has to do this for each order separately. Here is one such email: 185876690-38cf0c58-fc79-4eb1-b1b4-254e23e99d17

We can implement this behavior with WC_Email_Customer_Invoice. We can use JWT so that user is logged in when they open the url in another device.

Invoice with other softwares like PayPal or Stripe

They give merchant the option to save / email invoice from their own portal. Paypal invoicing on wordpress is also available by 3rd party plugins like this one.

Simple implementation:

  1. Using WC_Email_Customer_Invoice to always email invoice whenever an order is created (i.e. 'Pay with Bitcoin' is selected).
  2. Give merchant an option to turn off this behavior in settings.

In further iterations, we can give buyers the option to generate invoice as well, both during or before checkout.

  • Invoice generation during checkout - If merchant has turned off auto email invoice when order is created then we can do something like @thisisayush points out by adding 'Continue on another device'. In this since checkout is already generated and payment details are shown, we have to note the time remaining for current checkout and pass that through QR / or any other way we share the url. This will lead to changes in checkout page UI, which must not be confusing, especially on mobile devices.
  • Invoice generation before checkout - We can also add 'Email / Save Invoice' before the checkout along with 'Pay with Bitcoin' button.

We must make these changes configurable easily by merchants, without affecting the checkout too much as complicated checkout was linked to an 18% dropoff in conversions.

anktd avatar Aug 23 '22 04:08 anktd

They go 1 step ahead, giving buyer the option to save / email invoice during or even before the checkout. For a failed transaction, they auto send invoice on email (or whatsapp, etc. as per user setting).

Can you give a video of this behaviour

blockonomics avatar Aug 23 '22 06:08 blockonomics

Also related to #282

blockonomics avatar Aug 26 '22 08:08 blockonomics

Here is the video of paypal wordpress checkout

https://user-images.githubusercontent.com/97018228/187354229-1c45e349-35f6-4374-8812-90fa45ddfa1f.mp4

Here is the paypal button to direct checkout from cart

https://user-images.githubusercontent.com/97018228/187354444-e30f4271-c6bc-4eb6-85a4-9781d827803d.mp4

Here is the single product checkout from paypal on wordpress

https://user-images.githubusercontent.com/97018228/187355500-6eb9f6c3-2967-4f96-bb81-bde45d2709a0.mp4

Here is the paypal merchant invoicing, but from their own platform. Paypal invoicing on wordpress is available by 3rd party plugins like this one

https://user-images.githubusercontent.com/97018228/187354810-1752bd98-e281-4417-b754-160d740b039f.mp4

anktd avatar Aug 30 '22 05:08 anktd

Email invoice from Order Action in Order Details:

https://user-images.githubusercontent.com/97018228/191693672-971874f6-5965-4408-997f-496672409103.mp4

anktd avatar Sep 22 '22 08:09 anktd