Open TimBlom opened 6 years ago
case 00267496
Also case 00302465
Also case 00396245
00657465 PostNL-locatie als verzendadres in plaats van aparte melding onderaan bestelbevestiging, zodat het niet theme afhankelijk is of de melding pickup locatie wordt laten zien
$order = new WC_Order($order_id);
$shipping = $order->get_data()['shipping'];
foreach($order->get_data()['meta_data'] as $key=> $value){
if($value->get_data()['key'] == '_postnl_delivery_options'){
$selector = $key;
$data = json_decode($order->get_data()['meta_data'][$selector]->get_data()['value'], true);
}
}
Je adres zit dan in $data['pickupLocation']
Any update on this? I want; if the customer does choose a PostNL pickup location that the shipping address will be the PostNL pickup location. Now when I make test purchase, in the confirmation mail I see delivery information: PostNL pickup location, under that the billing address of the customer and the shipping address = billing address. I want to avoid confusion.
When I use the payment method of 'Afterpay' I need to send them the shipping address of the PostNL location to avoid fraud.