• Hello Team,

    kindly advise how to include orderid with concatenation field below?

    public function process_payment( $order_id ) {
    	
    			$order = wc_get_order( $order_id );
    			
    			//test merTradeNo added on 1 July 2022 @roshanbi
    			$merTradeNo->billing_first_name ." ".$merTradeNo->billing_last_name .", ".$merTradeNo->billing_address_1.$merTradeNo->billing_address_2 . ", " .$merTradeNo->billing_postcode." ". $merTradeNo->billing_city. ", ". $merTradeNo->billing_state;

    Regards,

    Roshan

    • This topic was modified 2 years, 4 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Please elaborate your requirement to understand clearly. Where do you want to put orderid the exactly?

    Thread Starter roshanbi

    (@roshanbi)

    example we could add the orderid as below? is the syntax correct? what if one of the fields is null?

    $merTradeNo->order_id .” “.$merTradeNo->billing_first_name .” “.$merTradeNo->billing_last_name .”, “.$merTradeNo->billing_address_1.$merTradeNo->billing_address_2 . “, ” .$merTradeNo->billing_postcode.” “. $merTradeNo->billing_city. “, “. $merTradeNo->billing_state;

    Regards,

    Roshan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘concatenate fields’ is closed to new replies.