wp-e-commerce / WP-e-Commerce

WP eCommerce - The most popular independent eCommerce platform for WordPress
https://wpecommerce.org
GNU General Public License v2.0
216 stars 216 forks source link

Themable, HTML email #766

Open leewillis77 opened 10 years ago

leewillis77 commented 10 years ago

Purchase receipts, and reports should be HTML by default, and easily themable, with a sensible default based on industry best practice.

Some samples we can use / borrow from: https://github.com/mailchimp/email-blueprints https://github.com/zurb/ink

JustinSainton commented 10 years ago

Massive +1 to this.

JustinSainton commented 10 years ago

It could be argued that this should be a plugin, but I'm a huge proponent of this being in core. I get asked about it all the time, and the plugin that does this currently (WPEC Style Emails, I think it's called) is pretty hacky.

leewillis77 commented 10 years ago

Yep - I'm just integrating Mandrill into my store and the hacks I'm using are horrible ... The half-plain text half-(invalid)-HTML we currently generate is interesting to say the least.

JustinSainton commented 10 years ago

Ha, yeah, no doubt about that. Is this something you think you'd be interested in building out, or are you thinking a more community-driven approach?

instinct commented 10 years ago

In Lee we trust!

It'd be good if there was something industry standard we could fork / use?

d

Sent from my iPhone

On 31/12/2013, at 10:11 am, JustinSainton notifications@github.com wrote:

Ha, yeah, no doubt about that. Is this something you think you'd be interested in building out, or are you thinking a more community-driven approach?

— Reply to this email directly or view it on GitHub.

instinct commented 10 years ago

Ink looks really interesting!!

Sent from my iPhone

On 31/12/2013, at 9:54 am, Lee Willis notifications@github.com wrote:

Purchase receipts, and reports should be HTML by default, and easily themable, with a sensible default based on industry best practice.

Some samples we can use / borrow from: https://github.com/mailchimp/email-blueprints https://github.com/zurb/ink

— Reply to this email directly or view it on GitHub.

leewillis77 commented 10 years ago

Just to confirm, I am working on this as and when time allows. I've had a good look at Woo do, and what EDD are proposing, and think I've got a rough idea of what we need, so here's what I'm aiming for:

Nowhere near finished, or usable yet, but all code stored here in the meantime: https://github.com/leewillis77/WP-e-Commerce/commits/html_email for anyone who's interested.

instinct commented 10 years ago

This is great Lee!! Out of curiosity what are you thinking - Ink or Mailchimp? Or too early to say ?

d

Sent from my iPhone

On 5/01/2014, at 3:56 am, Lee Willis notifications@github.com wrote:

Just to confirm, I am working on this as and when time allows. I've had a good look at Woo do, and what EDD are proposing, and think I've got a rough idea of what we need, so here's what I'm aiming for:

A generic WPSC_Email class that handles the sending of emails, filters, auto plain-text generation etc. Updating the existing email generation code to use that to send Also updating the existing email generation code to use themable HTML chunks using the existing theme approach (There may be use for a generic class in there, not sure till I get to it). A standard template based on either the Ink, or Mailchimp repos. Nowhere near finished, or usable yet, but all code stored here in the meantime: https://github.com/leewillis77/WP-e-Commerce/commits/html_email for anyone who's interested.

— Reply to this email directly or view it on GitHub.

leewillis77 commented 10 years ago

Hi Dan,

I'm note it makes much difference to be honest - it should really be easy to swap out one for the other. Happy to take guidance from anyone who has a strong opinion about the particular choice of template :)

JustinSainton commented 10 years ago

I agree - we should make a decision in core, but make it easy to swap out (a filterable class of sorts). I personally lean towards Ink, but that's just personal preference. Depending on the design decisions you make, @leewillis77, it might not even need to be a filterable class - just a matter of having default theme templates and people swapping them out and redesigning as needed.

instinct commented 10 years ago

Thanks @JustinSainton :)

Thats +1 for Ink and 0 for mailchimp. Ink has a pretty active repo in github by the looks of it.

domjngo commented 10 years ago

Exactly what is needed. Nice one.

instinct commented 10 years ago

Hey @leewillis77 how are things going mate? Where did you get with this one?

JustinSainton commented 10 years ago

@leewillis77 Unless you want to lead the efforts here for 3.9, I'll go ahead and move this over to a future release.

danmilward commented 10 years ago

any more thoughts on this one for 3.9 ? @leewillis77 if you could get this happening it'd be amazingly helpful for the WPEC efforts going forward... is there any chance you could make a start or share more thoughts on it?

leewillis77 commented 10 years ago

I started on this, and made some reasonable progress. Everything is on GitHub here:

https://github.com/leewillis77/WP-e-Commerce/tree/html_email

What this does so far:

Still to do are:

JustinSainton commented 10 years ago

@leewillis77 Awesome work man!!

I wonder if it would make sense to extend WPSC_Purchase_Log_Admin_Notification and WPSC_Purchase_Log_Customer_HTML_Notification respectively?

Seems to me that there is some overlap between WPSC_Email and what those classes do? I could imagine the WPSC_Email class being stripped down to the template handling and content stripping primarily? ( html_to_plain_text(), apply_template(), get_template_part() ).

Thoughts on that?

JustinSainton commented 9 years ago

@leewillis77 Would love to see this in 4.1. Think you'll have bandwidth to shepherd this through completion in the next few months?

leewillis77 commented 9 years ago

Do you have a timeline in mind for 4.1? If it's going in it should go in early to get plenty of testing!

I'm embroiled in fun legal things for the next week or two, but after that should be able to massage the final bits. From memory, we have a working email class, just need to make WPeC actually use it ;)

JustinSainton commented 9 years ago

Love fun legal things! 4.0 should be out in the next 4-6 weeks, so sometime after that we'll spin up 4.1 development. That work for you?

leewillis77 commented 9 years ago

Yep!

JustinSainton commented 7 years ago

Related: #505, #387, #2259