Support » Plugin: Quotes for WooCommerce » Add a total row in “New Quote Request Sent” email

  • Resolved andremecha

    (@andremecha)


    Hi Pinal Shah, first of all thank you for this plugin ๐Ÿ™‚

    I’d like to add a Total row in “New quote” email template, is there any snippet to do this?

    I’m planning to translate your plugin into Italian if you agree. Just tested some string, as you can see ๐Ÿ™‚

    Grazie,
    ciao!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter andremecha

    (@andremecha)

    Let me know if you need a logo for this plugin, I’m glad to help you.

    Plugin Author Pinal Shah

    (@pinalshah)

    Hi @andremecha,

    Ah! that sounds wonderful. I’d really appreciate it if you could be so kind as to help me with the logo and translations.

    I’ve had some extremely kind contributors help me translate the plugin to French, Russian & Dutch – Netherlands.

    I understand that you wish to add the order total to the New Quote email sent to the admin. I’ll make some changes which will allow you to do the needful.

    Shall send you an update in a day or two for the same.

    Thanks once again for your offer to help. Please feel free to send an email to pinalj1612 at gmail dot com for any further communication.

    Thanks,
    Pinal

    Plugin Author Pinal Shah

    (@pinalshah)

    Hi @andremecha,

    As discussed in the email, I’ve added a new filter which will allow you to add new row to the order items table.

    Here’s a link below to the GitHub copy of the plugin. I’ve added a filter using which you can modify the table as needed.
    https://github.com/pinalj/quotes-for-woocommerce/tree/1.7.3

    This should help you add rows as desired. Please replace the existing plugin copy with the updated copy via FTP to ensure you can use the new hook.

    Below is a sample snippet which you can place in the functions.php file of the active theme.

    function add_quote_row( $order_id, $order ) {
    	?>
    	<tr>
    		<td colspan="2">
    			<?php esc_html_e( 'Subtotal:', 'quotes-wc' ); ?>
    		</td>
    		<td>
    			<?php echo $order->get_formatted_order_total(); ?>
    		</td>
    	</tr>
    	<?php
    }
    add_action( 'qwc_new_quote_admin_row', 'add_quote_row', 10, 2 );

    I hope this helps. Please let me know.

    Thanks,
    Pinal

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.