• Resolved Fee

    (@wdfee)


    Hello,
    we use another WooCommerce plugin called “German Market”:
    https://marketpress.de/shop/plugins/woocommerce-german-market/

    This plugin add’s another email called “Customer Order Confirmation”, which is sent directly after sending the order.

    We need to add our PDF to exactly this email.

    This is the name with textdomain:
    __( 'Customer Order Confirmation', 'woocommerce-german-market' )
    id/status:
    'customer_order_confirmation'

    Could you add this to the available email status checkboxes?
    Or could you help us to hook correctly into your code to make this working?

    Thanks,
    Fee

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @wdfee,

    I’m not familiar with the German Market plugin, but if it registers its additional emails in the correct way these should show up in our plugin settings via WooCommerce > PDF Invoices > Documents > Invoice > Attach to. Is it not showing up there?

    Thread Starter Fee

    (@wdfee)

    Hi kluver,
    thanks for your reply.
    Unfortunately it is not showing up.
    I already wrote to the German Market support and they told me I shall use the hook “woocommerce_email_attachments” and gave me the info about status ‘customer_order_confirmation’.
    Then I looked into your code and saw that you use the same hook and walk through the email_ids activated in the document settings. Currently I don’t get the right way to drop in there.

    Plugin Contributor Ewout

    (@pomegranate)

    If they don’t register it ‘officially’ within WooCommerce, you can add it to the settings with a filter:

    
    add_filter('wpo_wcpdf_wc_emails', function($emails){
        $emails['customer_order_confirmation'] = __( 'Customer Order Confirmation', 'woocommerce-german-market' );
        return $emails;
    },10,1);
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Thread Starter Fee

    (@wdfee)

    You’re great! It works. Thanks ??

    Plugin Contributor Ewout

    (@pomegranate)

    You’re welcome Fee! If you can spare a minute for a review, it’s always much appreciated!
    https://www.ads-software.com/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/#new-post

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘one more order status needed for plugin German Market’ is closed to new replies.