• Resolved loopforever

    (@loopforever)


    Hello,
    In the product add section, when the vendor says save the product, it redirects it to the product add page. So it stays on the same page.
    I want to change this temporarily. For example, I want to redirect the “products” section on the seller page again. How can I change which file for this?

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

    Okay, I understand your request.

    I do not have an exact example of your desired result. The redirect functionality is happening here –

    Path: \dokan-lite\includes\Dashboard\Templates\Products.php
    Function: handle_product_update
    Line: 480

    You can make your changes here depending on your need.

    Thank you ??

    Thread Starter loopforever

    (@loopforever)

    Thank you for your answer.

    Is this line I wonder?
    wp_redirect( add_query_arg( array( 'message' => 'success' ), $redirect ) );

    I studied the related function but could not fully understand it.
    However, there is no code in line 480.

    For now, I want to redirect (for a few days) to the Vendor “products” page:

    … com /…/ products /

    Hello @loopforever ,

    Yes, that’s the line you want to modify. You can do it like this –

    $url = 'https://example.com/dashboard/products/';
     wp_redirect( add_query_arg( array( 'message' => 'success' ), $url ) );

    I hope this helps.

    Thank you ??

    Thread Starter loopforever

    (@loopforever)

    Thank you so much ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vendor save Page’ is closed to new replies.