Offers should have seller rating

I just noticed that we can increase the booking rate by including the seller rating in the offers. How can i implement this. Customers don’t know who to book and clicking on their icon is tedious.

Please try this PHP snippet. But please note that it can require further customization

add_filter(
	'hivepress/v1/templates/offer_view_block',
	function( $template ) {
		if ( hivepress()->get_version( 'reviews' ) ) {
			$template = hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'offer_container' => [ 
						'blocks' => [
							'offer_rating' => [
								'type'   => 'part',
								'path'   => 'vendor/view/vendor-rating',
								'_order' => 5,
							],
						],
					],
				],
			]
		);
		}
		
		return $template;
	},
	1000
);
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.