Vendor Panel Save Button Redirection

Hi guys , anyone have an idea On vendor Panel when clicking this save button , I want it to redirect it on their listing or their product list.
Because the current function is it will just redirect here on this page.
Thanks

regards,
Dan

hoping anyone has an idea on this thanks

Please clarify the issue in more details. A vendor adds new products and see the page from your screenshot?

I mean the goal is , after success creation of product when save is hit, I want it to redirect to its own product list

here @ecomlabs

app/controllers/backend/products.php

You can replace

        if (!empty($product_id)) {
            $suffix = ".update?product_id={$product_id}"
                . (!empty($_REQUEST['product_data']['block_id']) ? "&selected_block_id={$_REQUEST['product_data']['block_id']}" : '');
        } else {
            $suffix = '.manage';
        }

with

       if (ACCOUNT_TYPE == 'vendor' && empty($_REQUEST['product_id'])) {
           $suffix = '.manage';
       } elseif (!empty($product_id)) {
            $suffix = ".update?product_id={$product_id}"
                . (!empty($_REQUEST['product_data']['block_id']) ? "&selected_block_id={$_REQUEST['product_data']['block_id']}" : '');
        } else {
            $suffix = '.manage';
        }

(!) Not tested

1 Like

okayx thanks , I will try that

Hi @ecomlabs i tried it, not works, I guess they are using ajax on making a post request on this form, any idea where to find this add product on ajax?

It works on my local multi-vendor installation. May be extra addons affect this behaviour

I will take a look on that @ecomlabs thanks btwy for the effort

1 Like

I already found the problem its on my plugin , thanks that works

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.