• Resolved charlotte

    (@charlotte23)


    This is a great plugin but I need two extra fields to display:
    I’d really like to be able to add

    1) a custom field : [billing company]

    which is hooked in in functions.php
    $fields['billing']['billing_company']['required'] = true;

    And also

    2) the coupon code if there was one redeemed in the order.

    Can you help me to achieve this?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kokomo

    (@kokomoweb)

    Hi Charlotte,

    Let me see what I can do, I’ll report back here soon ??

    Thread Starter charlotte

    (@charlotte23)

    You are very good. I did a little tweak to /wc-product-customer-list/views/table-customer-list.php and just changed the field it called for now as a quick hack.

     if(get_option( 'wpcl_billing_address_1','no' ) == 'yes') { ?>
    									<td>
    										<p>
    											<?php echo $order->get_billing_company(); ?>
    										</p>
    									</td>

    Not a clue how to pull in the coupons ??

    Plugin Author Kokomo

    (@kokomoweb)

    For the coupons i’m assuming the function is
    $order->get_used_coupons()

    I’ll try it tomorrow and hopefully add all of this to the next version.

    Plugin Author Kokomo

    (@kokomoweb)

    Hi @charlotte23,

    I have added the new columns in the settings, you can update the plugin now. Enjoy and don’t forget to rate my plugin if you like it!

    Thread Starter charlotte

    (@charlotte23)

    that’s brilliant – thank you so much!

    ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding other Fields’ is closed to new replies.