Post by Webb » Sat Aug 06, 2011 11:35 pm

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

Attachments

oc_apply_btn.jpg

oc_apply_btn.jpg (10.7 KiB) Viewed 2584 times


Newbie

Posts

Joined
Mon Jul 25, 2011 3:36 pm

Post by jdw_id » Sat Aug 13, 2011 11:59 am

yes i'm looking for this feature too....

it's a must have feature because it can make us works faster... expecially when we want to look at the result first in front end...

Newbie

Posts

Joined
Thu Aug 11, 2011 8:11 pm

Post by straightlight » Wed Dec 28, 2011 12:20 pm

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Qphoria » Wed Dec 28, 2011 1:35 pm

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.
Interesting thought but I can't foresee that being a problem.
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'));
could be

Code: Select all

$this->redirect($this->url->link('catalog/product', 'product_id=' . $this->request->get['product_id'] . '&' . token=' . $this->session->data['token'] . $url, 'SSL'));

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by webpie it. » Wed Dec 28, 2011 6:37 pm

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

Regards

Chris


Active Member

Posts

Joined
Mon Jan 31, 2011 7:28 pm

Post by straightlight » Wed Dec 28, 2011 10:17 pm

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.
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Qphoria » Thu Dec 29, 2011 1:43 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by straightlight » Thu Dec 29, 2011 1:54 am

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
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by iplocker » Sun May 26, 2013 6:41 pm

Hello.

Really any updates about this one ?
Its so annoying not to have an apply button and we have to re-edit on the product for further modifications.

Thanks
Theo

Active Member

Posts

Joined
Sun May 26, 2013 6:39 pm


Post by Johnathan » Sun May 26, 2013 10:46 pm

I don't believe Daniel has this planned at this time, but I do have an Admin Save & Keep Editing extension that does this.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by iplocker » Fri Jun 14, 2013 3:40 am

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

Active Member

Posts

Joined
Sun May 26, 2013 6:39 pm

Who is online

Users browsing this forum: No registered users and 24 guests