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
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
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 already found the problem its on my plugin , thanks that works
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.