Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weForms/Dokan integration not functioning properly #241

Open
SitesByYogi opened this issue Aug 7, 2024 · 0 comments
Open

weForms/Dokan integration not functioning properly #241

SitesByYogi opened this issue Aug 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SitesByYogi
Copy link

User brought this to our attention:

I am currently experiencing an issue with setting up the vendor contact form on my Dokan marketplace. I have followed the instructions provided in your tutorial (https://wedevs.com/blog/132068/create-vendor-contact-form-for-dokan-marketplace/; https://dokan.co/docs/wordpress/create-a-vendor-contact-form-for-dokan/), but I’ve encountered a couple of challenges:

The “Enable the check-box Allow Vendors to contact Admins from the dashboard area” option does not appear in my admin settings. This seems to be missing from the UI.
After implementing the provided (https://wordpress.org/support/topic/not-working-with-dokan/) PHP code to enable the contact form on the vendor dashboard:
/* Change the type of Vendor Contact Form enable feature */ function vendor_contact_form_option_type( $settings_fields ){ $settings_fields['weforms_integration']['allow_vendor_contact_form']['type'] = 'switcher'; return $settings_fields; } add_filter( 'dokan_settings_fields', 'vendor_contact_form_option_type', 99 );

The checkbox appears, and I can enable the contact form feature. However, when vendors try to use this feature, instead of opening the contact form, it redirects them to the general “Contact” page of the site.


[BC] I set this up according to the provided documentation and although I'm not getting the same redirect issue, my Dokan input fields are not importing over to the live form. I checked the console but did not see any error messages pertaining to the issue.

As for the UI it does appear to be a different layout and I noticed a possible conflict when trying to implement the provided snippet. In the Dokan General Settings there is a toggle called Admin Area Access which prevents vendors from accessing the wp-admin dashboard area. If HPOS feature is enabled, admin access will be blocked regardless of this setting. The Vendor Contact Form area also has a setting Vendor Can Contact that allows vendors to contact admin from the dashbaord area. I can imagine that this could cause some conflicts. I tried switching off the snippet and allowing access from General Settings but the form fields are still not displaying correctly on the live form.

@SitesByYogi SitesByYogi added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant