Someone might have already suggested this here in the great OC community.
In admin panel after making any modification in any section (product, categories, modules etc) when 'save' button is pressed it takes you to the main page from where you came from.
For example you searched and edit the product in the admin panel and hit save button. It takes you back to the product list page. What if you want to make another minor change to the same product. Then you may have to search and press the edit button again to enter into the edit mode.
What I'm suggesting here that it will be great option to have the "Apply" button along with the "Save" button.(Just like Joomla Admin). After making the changes when the "Apply" button is hit the admin stays on the same page instead of going back and looking at the long list again. When he is satisfied with the changes can hit the save button. Thanks
In admin panel after making any modification in any section (product, categories, modules etc) when 'save' button is pressed it takes you to the main page from where you came from.
For example you searched and edit the product in the admin panel and hit save button. It takes you back to the product list page. What if you want to make another minor change to the same product. Then you may have to search and press the edit button again to enter into the edit mode.
What I'm suggesting here that it will be great option to have the "Apply" button along with the "Save" button.(Just like Joomla Admin). After making the changes when the "Apply" button is hit the admin stays on the same page instead of going back and looking at the long list again. When he is satisfied with the changes can hit the save button. Thanks
Attachments
oc_apply_btn.jpg (10.7 KiB) Viewed 2584 times
The problem by creating such feature would be for the CSRF protection to refresh the token when actions are directly applied on form without page refresh. Doing so wouldn't allow OpenCart to rely on the header to execute its next call when generating a new token which wouldn't be quite safe for admins.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Interesting thought but I can't foresee that being a problem.straightlight wrote:The problem by creating such feature would be for the CSRF protection to refresh the token when actions are directly applied on form without page refresh. Doing so wouldn't allow OpenCart to rely on the header to execute its next call when generating a new token which wouldn't be quite safe for admins.
The page would still load the same. The only change would be to change the redirect to go back to the current page instead of the list.
So in the update function
Code: Select all
$this->redirect($this->url->link('catalog/product', 'token=' . $this->session->data['token'] . $url, 'SSL'));
Code: Select all
$this->redirect($this->url->link('catalog/product', 'product_id=' . $this->request->get['product_id'] . '&' . token=' . $this->session->data['token'] . $url, 'SSL'));
I've seen this added on i Believe in Jonathan's Mods. He calls it Apply and Continue Editing in the his modules (i think) but i have always wondered why this isn't core.
Matter of preference i guess and what you are trying to achieve!
But thanks Q!
I am going to apply that logic to some places within OC admin where i think its logical.
Chris
Matter of preference i guess and what you are trying to achieve!
But thanks Q!
I am going to apply that logic to some places within OC admin where i think its logical.
Chris
Regards
Chris
Doing it the way you did above simply is a matter of changing the target name which still recalls the header while I thought this issue was about a jQuery call when using the Apply button on the same page.The page would still load the same. The only change would be to change the redirect to go back to the current page instead of the list.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
If this could be done on OpenCart without recalling the header navigation (without the token to get expired from URL), it would be a unique opportunity for online merchants.Qphoria wrote:Ah.. you mean as an ajax update.. tho the ajax update would also use the token. I guess we'd have to try it and see. If we used an ajax method, we could even set auto-save every 10 secs or so
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I don't believe Daniel has this planned at this time, but I do have an Admin Save & Keep Editing extension that does this.
Hello.
BUT really now, how is possible a so popular cart not to have some basic features!!!!!
I dont understand that , a so basic feature an apply button is missing from a so famous cart !!!
I believe that devs of OC has to run a really eshop and found how not practical is to save and edit again on the product.
Thanks
Theo
BUT really now, how is possible a so popular cart not to have some basic features!!!!!
I dont understand that , a so basic feature an apply button is missing from a so famous cart !!!
I believe that devs of OC has to run a really eshop and found how not practical is to save and edit again on the product.
Thanks
Theo
Who is online
Users browsing this forum: No registered users and 24 guests