Skip to content

Set Customer Billing Shipping Address on Bill Description

Wan Zulkarnain edited this page Jan 12, 2018 · 1 revision

You can set Customer Billing/Shipping Address on Bill Description.

Step:

  1. Edit file: billplzWoo.php
  2. After this line:
$desc = sprintf(__('Order %s', 'woocommerce'), $order->get_order_number()) . " - " . implode(', ', $item_names);

Add this line:

$desc = $order->get_billing_address_1() .' '. $order->get_billing_address_2().' '. $order->get_billing_city().' '. $order->get_billing_state().' '. $order->get_billing_postcode().' '. $order->get_billing_country();
  1. Save!

Note: You may change "billing" to "shipping" if you want to capture the shipping address instead of billing address.

Clone this wiki locally