Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2007
    Posts
    42
    Plugin Contributions
    0

    Default confirmation emails only for physical products?

    Hi folks, here is what I'd like to achieve in my store - I only want to recieve order confirmation emails on some orders. My store sells download pdfs and has just added physical product to the mix. It'd be really handy if we only got a copy of the confirmation emails for those products that have a physical component and therefore need a persons attention.

    I figure this should be fairly simple to achieve, all I need is to test if any of the products are from our physcial goods category. Or better yet check the weight / delivery address of the order, if there is one then part of the order is physical product and we want the email.

    So could someone help me out with a little code fix for that? I'm not sure on two things - which test would be the most reliable - the last thing we want to have happen is not recieve an email and end up ignoring a customer, and where the confirmation mails are sent? Is it part of the Zen cart framework or is it part of the payment modules or even somewhere else?

    I'm on Zen cart 1.3.8a, using paypal to take monies.

    Cheerio for now,

    Alan

  2. #2
    Join Date
    Jul 2007
    Posts
    42
    Plugin Contributions
    0

    Default Re: confirmation emails only for physical products?

    alright so I had a dig and found what looks like my solution. In:

    <shop>/includes/classes/order.php

    There is a function 'send_order_email', in the section of that commented as send addtiional emails, I added and if/check:

    PHP Code:
        $total_weight $_SESSION['cart']->show_weight();
        if (
    $total_weight 0){
              
    zen_mail(''SEND_EXTRA_ORDER_EMAILS_TOSEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT ' ' EMAIL_TEXT_SUBJECT EMAIL_ORDER_NUMBER_SUBJECT $zf_insert_id,
              
    $email_order $extra_info['TEXT'], STORE_NAMEEMAIL_FROM$html_msg'checkout_extra'$this->attachArray);
        } 
    And that seems to be doing the trick nicely. Of course if that is setting off alarm bells to any folks who know better around these parts I'd appreciate a heads up

 

 

Similar Threads

  1. v154 Order confirmation emails and Contact Us emails not being received
    By jcrewe in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2015, 06:36 PM
  2. v150 Broke Html order confirmation emails - only showing code
    By gfdesigns in forum General Questions
    Replies: 20
    Last Post: 25 Nov 2014, 09:16 PM
  3. Weird Shipping Question for combination download and Physical Products
    By nizernoj in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 25 Oct 2012, 03:33 PM
  4. v139h Add text to Order Confirmation emails (Text email only)
    By gsh68 in forum General Questions
    Replies: 6
    Last Post: 19 Sep 2012, 10:47 AM
  5. Custom confirmation emails for each product
    By alipper in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Apr 2009, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg