• WhiteOne93

    (@whiteone93)


    Hello,

    Am facing a problem with woo_invoice_before_billing_address hook, it seems not working since the new added field is not showing on the invoice.
    This is my code:

    add_action('woo_invoice_before_billing_address', 'add_salesman_name', 10, 2);
    
    function add_salesman_name($order, $template) {
         $salesman = 'test';
         ?>
         <span>Salesman Name: <?php echo $salesmanName; ?></span>
         <?php
    }

    Note: am using the latest free version of the plugin.

    • This topic was modified 1 year ago by WhiteOne93.
    • This topic was modified 1 year ago by WhiteOne93.
Viewing 1 replies (of 1 total)
  • Plugin Author Ohidul Islam

    (@wahid0003)

    Please update our new plugin version 3.0.6 and try with this code

    add_action(‘woo_invoice_before_billing_address’, ‘add_salesman_name’, 10, 2);

    function add_salesman_name($order, $template) {
    $salesmanName= ‘test’;
    ?>
    <span>Salesman Name: <?php echo $salesmanName; ?></span>
    <?php
    }

Viewing 1 replies (of 1 total)
  • The topic ‘hook not working’ is closed to new replies.