• Tina

    (@sunflowermom)


    I have been looking and looking for a plugin or ability to do this, and I cannot for the life of me find anything except the $99 WooCommerce plugin…which I cannot afford. This seems like such a basic feature: emails specific to the product, which go out when a product is purchased.

    Am I missing something? Is there a way to do this that I just haven’t discovered yet? Or a plugin I’ve yet to find? Please help! I want each product to have it’s own specialized email that goes out when it is purchased, with important info in it for the customer, about the product. (My products are services.)

    Can anyone help me?

Viewing 15 replies - 1 through 15 (of 21 total)
  • It wouldn’t be a complete, specialized email, but you can add a purchase note (Edit Product -> Product Data -> Advanced -> Purchase Note) that will be included in the order email when a customer purchases a product.

    Would that be enough for your purposes?

    Thread Starter Tina

    (@sunflowermom)

    Hmmmm, maybe…any idea how much content it can hold?

    That’s a good question. I just copied-and-pasted the source code from an entire web page in a product to test it, and it took it all. It did strip some of the HTML tags when I saved it, but it looks like it left all the important HTML. From that limited test, I think you could add HTML with images, etc. I didn’t test how it would look in the order email. I peeked at the code they use to display the purchase note in the order email, and it puts it in a table cell:

    
    if ( $show_purchase_note && is_object( $_product ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) : ?>
    		<tr>
    			<td colspan="3" style="text-align:left; vertical-align:middle; border: 1px solid #eee; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
    		</tr>
    	<?php endif; ?>
    

    The problem I see with that is that the table cell is set for left-aligning the text and a vertical align of “middle”. The latter might cause a problem, but it may not.

    Thread Starter Tina

    (@sunflowermom)

    Thanks! I’ll test it out and see how it works! If this works, that could save me a lot of work. I’ve been playing around with a Zap on Zapier….but still have some tweaking to do and I’m still not sure it will do what I want…this would be much easier!

    I’m interested to know if it will work.

    Thread Starter Tina

    (@sunflowermom)

    It works! But only because I added some code from this page: https://www.sellwithwp.com/how-to-show-woocommerce-product-information-after-purchase/#email

    Apparently the note doesn’t show by default, so you have to enable it. I have a plugin I used to add code without messing with the original files: “My Custom Functions”…I plugged in the code from that webpage and it works great! Shows in the email receipt.

    • This reply was modified 8 years, 5 months ago by Tina.
    Thread Starter Tina

    (@sunflowermom)

    THANK YOU so much for your help! I never knew about that note feature! Without you, I’d probably still be banging my head against a wall! LOL! Now if only WooCommerce would add product specific emails as a feature! THAT would be ideal! But this will work for me for now.

    I’m glad you got it working, but that code snippet looks like it only adds the purchase notes to the email sent to the admin on an order. Are you sure any code is necessary to include the purchase notes for a customer? It looks like it’s already set to true for the customer in customer-completed-order.php (the third parameter):

    
    <?php echo $order->email_order_items_table( true, false, true ); ?>
    
    • This reply was modified 8 years, 5 months ago by linux4me2.
    Thread Starter Tina

    (@sunflowermom)

    Argh, found a flaw in this tweak. It repeats the same note under each order. So my long as message is repeated multiple times in the same email. ARGH

    Thread Starter Tina

    (@sunflowermom)

    Oh and it didn’t include the notes until I added the code. Don’t know why. But now it appears this might not work after all. SIGH

    Can you explain more about how the message repeats? Is it repeating for each product in the order to which it applies?

    I just added a purchase note to a product on a test site and purchased it using a customer (not admin) account. In the completed order email I received as the admin, there wasn’t a purchase note, but in the customer’s copy of the completed order email, the purchase note was in there, just as it is supposed to be. There was only one instance of the purchase note unless I purchased two of the items (separately). Then the purchase note for each item was repeated.

    Thread Starter Tina

    (@sunflowermom)

    It’s because I use variations, I think….my products are field trips and under each variation: adult, child, toddler, etc….it is repeating that same note again. Making a very long email.

    That’s odd. I tested it on a variable product and I just got one purchase note unless I had more than one instance of the product.

    An alternative to the purchase note approach would be to customize the customer order completed email. WooCommerce allows you to override the standard emails in your theme. I have one client who, among other things, sells subscriptions to an online magazine. His customer order email includes a section that describes how/where to sign in for access to the magazine. You could do something similar, if all your trips required the same added information. If you need a different message for each product, you could add a PHP switch statement based on the item id to show the applicable message. It sounds more complicated than it is.

    quietcity

    (@quietcity)

    Hi Tina,

    I’ve also been looking for a product-specific email process for WooCommerce, for a really long time. I ended up rigging a work-around process using MailPoet and another (premium) plugin called WooMailpoet. (https://www.woomailpoet.com/)

    It’s not a one-click solution, but it does provide a way to send 100% custom emails to buyers based on what they have purchased, even if they have multiple items in the cart at checkout.

    Here’s how I did it:

    1. Install MailPoet and WooMailpoet and configure the basic settings for your email. There are lots of tutorials and instructions for that.

    2. After you’ve got WooMailpoet installed, you’ll see a new tab on the Product Data metabox called “Autoresponder” which shows a list of your MailPoet email lists. You can create a new list for each product on the fly.

    3. Back in MailPoet, create a new “Newsletter” email set to mail as soon as the subscriber is added to the list.

    So, essentially, as your buyer completes a purchase, they will get the default WooCommerce email receipt, but also a custom email message from the MailPoet system.

    You could replicate this system with almost any other email autoresponder – Mailchimp, Aweber, Constant Contact, etc – but I found that MailPoet was the fastest because it’s integrated right into the WP dashboard. You can create a template email and clone it each time you want to create a unique product-specific email.

    I hope that helps!
    Cheers
    Len

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Woocommerce email per product?’ is closed to new replies.