• Resolved stosun

    (@stosun)


    Hi,
    I am a paid Dokan Pro customer, But I couldn’t get any assistance at your support/chat system.
    I use popup view when adding new product. When I click “Create and New” button, it creates product and then open a new empty popup. I don’t want to open new empty popup. After clicking, just it should go /dashboard/products/ page .
    How can I realize it?
    What would be arguments of input element at tmpl-add-product-popup.php ?
    I hope I get proper assistance here.
    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @stosun,

    Please accept my apology for this unexpected inconvenience. Our support staff was trying to help on the ticket. The “Create & add new” button will open a new pop-up because that option is used to upload a new product rather than going to the edit product page. Now, if you want that your vendor will redirect to the dashboard/product page then you have to modify the URL of the “Create & add new” button. Please open dokan-lite/templates/products/tmpl-add-product-popup.php and check the line number 166.

    If you need then you can hide the “Create & add new” button.

    Thread Starter stosun

    (@stosun)

    Hi Nazmul,
    Thank you very much your response.
    So sorry to write my trouble with support/chat people for pro version, here.
    But I was a customer of yours for 4-5 years. At those days, I had received very positive assistance from your side, especially from Tareq.
    Let’s turn back to my issue;
    I am in tmpl-add-product-popup.php file.
    I saw submit input elements, I can add a new input element, but I don’t know what would be the id and class of input element, in order to go to /dashboard/products/ link after saving product.
    I think we have to tweak somewhere at dokan-add-new-product-form, which is form #id of form at tmpl-add-product-popup.php.
    Go to products page after saving product at popup case, is very important for my client.
    Could you give more how I can do it, please?
    Best Regards

    Hello @stosun,

    Actually, you may need to hardcode because the POP-UP is coming through JS. I can provide the file location. Please open wp-content/plugins/dokan-lite/assets/js/dokan.js and you have to comment out the line number 686 which is Dokan_Editor.openProductPopup(); ??

    Cheers!

    Thread Starter stosun

    (@stosun)

    Hello Nazmul,
    Great ??
    Thanks a lot.
    What I need is that.
    It works properly.
    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how block opening empty popup after create a product’ is closed to new replies.