rpress_has_variable_prices()

Author: bibhu 353 views

This function will check whether a fooditem has variable prices enabled. If the specified ID has variable prices, the function will return true, otherwise, it will return false.

Example:

if( rpress_has_variable_prices( $fooditem_id ) ) {
	//fooditem has variable prices enabled
} else {
	// variable prices are not enabled
}