Weekly pricing by catagory

Hi, I have got this code and I’d like to know if it’s possible to make this code work only by specific categories. Can anyone help me with this?

Thanks in advance

	function( $fields, $model ) {
		if ( isset( $fields['price'] ) ) {
			$fields['price']['display_template'] = '%value% / per week';

		return $fields;


Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY