wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

Plugin as WooCommerce subpage

Open Stibo opened this issue 4 years ago • 7 comments

🐞 bug report

Behavior:

  • What is the issue? (*) If I add the settings page for my plugin to the parent "woocommerce", the tabs seem to be broken and lose "focus" as soon as the user clicks on one of the Freemius tabs. That means, that if I'm on my setting page the titel of the page and the tabs "Settings" / "Account" (Freemius) / "Contact Us" (Freemius) / "Pricing" (Freemius) is displayed correctly and the "Settings" tab is active. As soon as I click on one of the Freemius Tabs, the layout is broken (missing spacings to the admin menu, the page title is missing and our own "Settings" tab is missing too. That means as soon as the user clicks on one of the Freemius tabs, the page looks broken and the user can't go back to the "Settings" tab. The subpage in the admin menu is still correctly active and the current Freemius page (for example "Account" is displayed as "subsubpage" underneath our submenu item.

As soon as I move our settings page to another parent (like options-general.php or any other), the tabs, page title and layout works as excepted. It's only broken if the parent is woocommerce.

We use the following init code:

$f4_wcqri_fs = fs_dynamic_init( array(
	'id'                  => '6321',
	'slug'                => 'f4-qr-invoices-for-woocommerce',
	'premium_slug'        => 'f4-qr-invoices-for-woocommerce-pro',
	'type'                => 'plugin',
	'public_key'          => '...',
	'is_premium'          => true,
	'is_premium_only'     => true,
	'has_addons'          => false,
	'has_paid_plans'      => true,
	'is_org_compliant'    => false,
	'navigation' 		  => 'tabs',
	'menu'                => array(
		'slug'           => 'f4-qr-invoices-for-woocommerce',
		'support'        => false,
		'parent'         => array(
			'slug' => 'woocommerce',
		),
	),
) );

Can you help us fix this problem?

  • What is the expected behavior? The expected behaviour is that the layout, page title and tabs are displayed equally the same, no matter if our "Settings" or a Freemius tab is active.

Versions: (*)

  • Freemius SDK Version: 2.3.2
  • WordPress Version: 5.4.2
  • PHP Version: 7.3

Plugin / Theme: (*)

  • Name: F4 QR Invoices for WooCommerce
  • Slug: f4-qr-invoices-for-woocommerce
  • Freemius ID: 6321

Stibo avatar Jun 27 '20 08:06 Stibo

I think this might have been fixed in the current develop branch. Would you mind testing and updating the ticket with your results? Thanks.

dgwyer avatar Jul 14 '20 11:07 dgwyer

Hi, I tried the current develop branch, but it is not fixed. The only difference is, that the "Account", "Contact Us" and "Pricing" subpages appear now beneath the settings pag ein the admin menu. I hope in the next version this issue will be fixed and I still can hide the mentioned subpages in the admin menu.

Stibo avatar Jul 14 '20 15:07 Stibo

Thanks for testing this and reporting back so quickly. The next release version will be based on the current develop branch so if the issue isn't fully resolved using this branch then the issue needs further investigation.

dgwyer avatar Jul 14 '20 15:07 dgwyer

Okay. If you need more information to investigate the problem, I'll try to help as good as I can. I hope you can fix this problem in the near feature.

Stibo avatar Jul 15 '20 06:07 Stibo

Any news on this subject?

Stibo avatar Aug 18 '20 08:08 Stibo

Do you guy even read the issues on GitHub? This is still an issue.

Stibo avatar Apr 13 '21 11:04 Stibo

Still no solution or even an answer here.

Stibo avatar Jan 05 '22 16:01 Stibo