You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue you are experiencing appears to be site-specific, as we are unable to replicate it on our local environments. We recommend reaching out through our official support channel by creating a support ticket from your Dokan.co account or submitting the form on our "Contact Us" page.
Bug Description
This logic can't work:
dokan/templates/orders/commission-meta-box-html.php
Line 42 in 8e3b23a
WordPress hides blocks using this logic:
Souce: https://github.com/WordPress/WordPress/blob/aa87f886780f31edc1f9148ed16cf36046d7f9bf/wp-admin/js/postbox.js#L462
And because
:hidden
match is broad: https://api.jquery.com/hidden-selector/it means that hiding "dokan_commission_box" also sets "woocommerce-order-items" as hidden
See the structure of the DOM:
Screen.Recording.2025-01-05.at.16.42.53.mov
It gets even worse, because there are two
woocommerce-order-items
on the page, once one is hidden and the page is released, the logic sets the two as hidden, and it's impossible to show back without sending custom cURL requests or updating the database: https://wordpress.org/support/topic/edit-order-product-details-no-longer-possible/#post-18226349Step To Reproduce
Screen.Recording.2025-01-05.at.16.46.24.mov
Additional Information
There has been a lot of regressions lately:
dokan-lite/includes/Commission/Settings/OrderItem.php:74
#2491dokan-lite/includes/Commission.php:267
#2486and now this one. Please do something about it, we can't sustain this pace.
Environment (please complete the following information)
cc @hasdfa for awareness, in case someone complains about this bug internally.
The text was updated successfully, but these errors were encountered: