When you have to create many products, you need often to change many of them. But after editing and saving a product you need always to click the "back" button or in the breadcrumb the "products" link. This annoying.

Therefore it would be nice if we can add an additional button "Save and continue". The normal save button leads to return to the product overview.

Comments

rszrama’s picture

Another option would be for the edit link from the product View to have a ?destination=admin/commerce/products query string. I've thought about doing that, but because those links are generated by the local actions system in the menu I wasn't sure how to go about it easily.

hunziker’s picture

Status: Active » Needs review
StatusFileSize
new2.57 KB

I create a patch that implements a combination of both approaches. I add a "destination" parameter to all operations links.

Then I add a button to the editing form of the product. If the user click this button, the destination is reset. So the customer is not redirect back to the product listing.

Bojhan’s picture

Status: Needs review » Needs work

UX improvements require screenshots to be reviewed.

hunziker’s picture

Status: Needs work » Active
StatusFileSize
new4.92 KB

Here is a screenshot of the buttons. The rest is hard to demonstrated as screenshot.

Bojhan’s picture

I think its good to just show the "flow" you changed with more full-sized screenshots. The buttons themselves are hard to review, other than why do we handle this usecase? We dont do that for content editing? I am a bit confused which button one would choose to go back to overview.

hunziker’s picture

StatusFileSize
new55.76 KB
new52.26 KB

Here are more screenshots.

rszrama’s picture

Yeah, I may just be down with using the destination link without requiring the "continue edit" button, as once you've made changes, there really isn't any reason to stay on this form.

hunziker’s picture

ok. Then add only the changes in commerce_product_ui.module.

rszrama’s picture

Title: Product creation » Redirect Product operations links back to the main View
Status: Active » Fixed

Alrighty, I started with that but ultimately moved the destination setting into the Views field handler for product operations links. I'm not sure where else product contextual links might be used and didn't want to accidentally add destinations to all of them. I updated the default View to have the option set by default.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/4e4f654

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.