Add Listing Button in supplier Dashboard

Hi Hivepress team.

We did hide the default add a listing button with the code snippet from you guys. we hide the add listing button as we do not create a marketplace, we do create the website only for our products. we do restrict adding new listings only for our crew/staff, not for the public.

  1. Is there any way to show up the add listing button in the Supplier Dashboard? to create a new listing, includes to show/displaying booking and order links, please refer to the attached file.

  2. how to display the booking offset at all our product listings? as each of our products has a different cut off time booking, for example: for Multy days need a few days to book the trip before the start time and for day trips the latest can be set 1 hour before the starting time.

Look forward to the team’s help.

Cheers,
Supratman


  1. Please try this PHP snippet but please note that it can require customization. Also please note that this page with all vendor listings appears only if a vendor has at least one listing
add_filter(
	'hivepress/v1/templates/listings_edit_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'page_content' => [
						'blocks' => [
							'vendor_listing_submit_link' => [
								'type'   => 'part',
								'path'   => 'listing/submit/listing-submit-link',
								'_order' => 5,
							],
						],
					],
				],
			]
		);
	},
	1000
);
  1. Sorry, there’s no hourly precision for the booking window at the moment, it can be defined as a number of days only.
1 Like

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