• Resolved hazim0505

    (@hazim0505)


    Hi. Can I create like two add new product. Like one is for add new item and another one is for add new car or else? Is it possible to do two add new product with different forms?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hazim0505

    (@hazim0505)

    Also where do I can find this do_action(‘dokan_render_new_product_template’)?

    Hi @hazim0505,

    By default, adding a new template/form for a different category product is unavailable in Dokan. But you can achieve it with proper customization.

    Currently, there is no documentation to create a new form for a different category product. In that case, you need to find a way by yourself to achieve your requirement.

    Here I’m providing files locations. You can try to achieve your requirement by investigating the following action/filter hooks.

    • File: Dashboard.php
    • Path: wp-content\plugins\dokan-lite\includes\Shortcodes
    • Action Hook: do_action( 'dokan_render_new_product_template', $wp->query_vars );
    • File: Products.php
    • Path: wp-content\plugins\dokan-lite\includes\Dashboard\Templates
    • Function: render_new_product_template
    • File: Rewrites.php
    • Path: wp-content\plugins\dokan-lite\includes
    • Filter Hook: dokan_query_var_filter

    Thank you,

    Thread Starter hazim0505

    (@hazim0505)

    Thanks. It’s working now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add new product’ is closed to new replies.