Join our new community forum for support & discussion

Join Now

Home Support Extensions Paid Listings My Account Page – Dashboard and Package Integration

My Account Page – Dashboard and Package Integration

  • Author
    Posts
  • Stivi

    Hello Ihor,

    I have another request regarding Design of My Account Page.

    Is it possible to integrate Dashboard with Package menu items. I want only to Have Dashboard which also displays in one extra block for Example:
    Dashboard
    Packages: Free – XY Listings Left
    than the extra information (statistic)….

    Please if this doesn’t requiere much work i would need your help!

    ihor developer

    Sorry, if you mean removing the Packages menu item and adding the package details to the vendor dashboard instead this would require layout customizations (via the hivepress/v1/templates/vendor_dashboard_page hook).

    Stivi

    Excatly thats what i mean. I got until here but i dont know how to get the content from the user_listing_packages_view…

    add_filter(
    	'hivepress/v1/templates/vendor_dashboard_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'page_content' => [
    						'blocks' => [
    							'listing_package_view_page' => [
    								'type'    => 'content',
    								'content' => 'xxxxxxxxxxxxx'
    								'_order' => 5,
    								
    							],
    						],
    					],
    				],
    			]
    		);
    	}
    );
    ihor developer

    Sorry, there’s no simple code snippet for this, this requires extra customizations. If you’re familiar with PHP please check how the packages are fetched here https://github.com/hivepress/hivepress-paid-listings/blob/master/includes/blocks/class-user-listing-packages.php

    ihor developer

    Actually just inserting a custom block with user_listing_packages type may work.

    Stivi

    It worked perfect! thanx man!

    I have another question: is there any option tu upgrade package before it expires?

    Thank for help. Please sent a link for review!
    Keep the good work

    ihor developer

    Sorry, there’s no such feature at the moment, if another package is purchased it’s added to the existing packages.

    If you have a moment please review HivePress on WordPress.org https://wordpress.org/support/plugin/hivepress/reviews/ Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.