• Resolved yevk

    (@yevk)


    We sell software and the license consists of:

    License Number: xxxx-xxxx-xxxx-xxx
    Product ID: xxx-xxx
    Download link: https://xxxxxxxx

    How can 3 items be provided in the email OR how can I add any html text right below the license number? I am currently sending it as License Number: xxxx-xxxx-xxxx-xxx | Product ID: xxx-xxx all in one string with | acting as a delimiter.

    So far I attempted to copy the template to a child theme and edited “Deliver license keys” and included:

    do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
    
    /**
     * Show user-defined additional content - this is set in each email's settings.
     */
    if ( $additional_content ) {
    	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );

    However it’s not showing the html from the additional content field. Even if it did, it would have placed it lower in the email not right below the license.

    My download link is static that takes the user to a page to select product they need, so I could in theory just add static html section if I could get a suggestion on where to add it.

Viewing 1 replies (of 1 total)
  • M Haseeb

    (@haseeb0001)

    @yevk Hi,

    There is no feature in our plugin to add an additional field in the email, that’s additional work and you need a programmer’s help to achieve this.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Adding additional text in the email’ is closed to new replies.