Home > Blockchain >  How to Save Custom Field in woo commerce session in cart page after shipping calculator
How to Save Custom Field in woo commerce session in cart page after shipping calculator

Time:04-21

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

  • Related