Hi,
there isn’t anything built in that does exactly that, however, the simplest way would probably be to use the following filter like so ( as an example, adjust as required )
add_filter('wppizza_filter_ordervars_formatted', 'myprefix_wppizza_ordervars_formatted');
function myprefix_wppizza_ordervars_formatted($order_parameters){
/* change formatted output if id > 0 , i.e a registered user */
if(!empty($order_parameters['wp_user_id']['value'])){
$wpUserId = $order_parameters['wp_user_id']['value'];
$order_parameters['wp_user_id']['value_formatted'] = 'do: get username from user id (as set in wpUserId above / $order_parameters['wp_user_id']['value'] ) according to wordpress codex';
}
return $order_parameters;
}
and subsequently enable the “User ID :” in the WPPizza->Templates” settings where/as required
hope that helps
-
This reply was modified 10 months, 1 week ago by ollybach.
-
This reply was modified 10 months, 1 week ago by ollybach.