How to Save Custom Field values in WooCommerce session in cart page after shipping calculator cart page custom field If I use a custom PHP session then It updates the price only when the page refreshes two times.
CodePudding user response:
You can set and get the WooCommerce session values with the below code.
WC()->session->set( 'group_order_data', $data_values );
$data_values = WC()->session->get( 'group_order_data' );
Thanks