wordpress-sdk
wordpress-sdk copied to clipboard
Plugin as WooCommerce subpage
🐞 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
I think this might have been fixed in the current develop
branch. Would you mind testing and updating the ticket with your results? Thanks.
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.
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.
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.
Any news on this subject?
Do you guy even read the issues on GitHub? This is still an issue.
Still no solution or even an answer here.