• Resolved rifatspir

    (@rifatspir)


    I’m trying split billing name, address, number. To get them partially I’m using these codes

    <<?php echo $this->order->get_formatted_billing_full_name(); ?>
    <?php echo $this->order->get_billing_address_1(); ?>
    <?php $this->billing_phone(); ?>

    Now I want to add states so I added <?php $this->get_billing_state(); ?>

    My problem is its don’t show the state name. it show only code like BD-123

    So how do I get state name or spit customer name from full billing address.

Viewing 1 replies (of 1 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @rifatspir

    You can do that easily using our Professional extension by changing the address format.

    If you prefer to go with a custom template, you can use this:

    $this->order->get_billing_first_name();
    $this->order->get_billing_last_name();
    $this->order->get_billing_company();
    $this->order->get_billing_address_1();
    $this->order->get_billing_address_2();
    $this->order->get_billing_city();
    $this->order->get_billing_state();
    $this->order->get_billing_postcode();
    $this->order->get_billing_country();
    $this->order->get_billing_email();
    $this->order->get_billing_phone();

    Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘How to split billing address, name’ is closed to new replies.