blockonomics / woocommerce-plugin

Accept bitcoins on your wordpress site, payments go directly into your wallet
24 stars 36 forks source link

Send email on new order #163

Open blockonomics opened 4 years ago

blockonomics commented 4 years ago

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

shivaenigma commented 4 years ago

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

blockonomics commented 2 years ago

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

anktd commented 2 years ago

I will look into this.

blockonomics commented 2 years ago

Also Tagging @DarrenWestwood and @thisisayush for thoughts

thisisayush commented 2 years ago

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.

anktd commented 2 years ago

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.

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.

blockonomics commented 2 years ago

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 commented 2 years ago

Also related to #282

anktd commented 2 years ago

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 commented 1 year ago

Email invoice from Order Action in Order Details:

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