Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Variable product creation is not available in the Dokan plugin #2809

@topgsmir

Description

@topgsmir

Bug Description

Unfortunately, in the new version of Dokan and WooCommerce, there is a conflict and the files:
https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js
are not loaded.
The problem is solved by disabling the Dokan plugin.
To check the problem, go to the Add Product section
Select the Variable Product
Then you will see that nothing is loaded
Now go and disable the Dokan plugin
You will see that everything is correct!!!
I put this code in the template to temporarily solve the problem:
add_action('admin_enqueue_scripts', function ( ){
if (is_admin()) {
wp_enqueue_script(
'dompurify',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js',
[],
null,
true
);
}

Please check as soon as possible. This is a very important problem.
Expand

Step To Reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Expected Behaviour

https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js

Actual Behaviour

https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js

Additional Information

No response

Environment (please complete the following information)

1. Dokan Version: [e.g. v3.1.2]
2. Dokan Pro Version: [e.g. v3.1.2]
3. WooCommerce Version: [e.g. v4.9.2]
4. Browser [e.g. chrome, safari]
5. Current Theme: [e.g. Store Front]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions