Hello,

Where did the menu links go to administer the store?

I can not find any settings to display the shop menu.
I am obliged to go through the "admin" menu every time.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zenimagine created an issue. See original summary.

bojanz’s picture

Status: Active » Fixed

You should have a Commerce tab in your toolbar.

If not (and the problem persists after a cache clear), you have a module causing a problem.

zenimagine’s picture

In the screenshot, there are the tabs "View" and "Manage display". But if there is no "Edit" tab, if a non-administrator user creates a store, how does he change his shop? I do not want to give him access to the admin menu

zenimagine’s picture

I have "Commerce" in the administrator toolbar. But how to display the menu as a tab on the shop page ?

bojanz’s picture

Did you give the non-administrator user access to view own stores?
"Online: Update own stores" -> the permission name.
If yes, then there might be a bug with the Edit tab not showing up.

As for the menu, that's an admin menu, you can't reuse it for regular users, create your own instead.

zenimagine’s picture

Yes the rights are correctly set but there is no "Edit" tab on the shop page

bojanz’s picture

Status: Fixed » Active

Might be a bug then. I can check next week.

Rob C’s picture

Version: 8.x-2.0-beta7 » 8.x-2.x-dev
Category: Support request » Bug report
Status: Active » Needs review
FileSize
623 bytes

I think i found it. The page_edit entry is missing in tasks.yml for store, or the existing entity edit tab is wrong and should be changed to canonical. Up for the maintainers to figure out what's best. :-)

Attached patch implements the edit tab just like the product module.

I've tested the permission and that seems to work just fine. You only need the view and edit own store permissions for this to work once this patch is applied.

Leaving status as-is, because i also really require this to work and i guess more cases fit (franchise owners really need to be able to edit their own stores in my case), but it does not break anything but the edit tab, so might want to downgrade it a bit.

Rob C’s picture

Created PR at Github

mglaman’s picture

Title: Where did the menu links go to administer the store ? » Cannot access edit route for store from canonical route
Category: Bug report » Feature request
Priority: Major » Normal

Moving to a feature request. Looks like we just made an oversight in links and missed the franchise/marketplace setup where some may actually use the canonical route. Currently, it is an admin-only flow.

mglaman’s picture

Here is the patch from Rob C. PR.

  • mglaman committed 1688ed6 on 8.x-2.x authored by Rob C
    Issue #2882378 by Rob C, mglaman, zenimagine: Cannot access edit route...
mglaman’s picture

Status: Needs review » Fixed

Committed, thanks!

Rob C’s picture

Currently, it is an admin-only flow

Yeah figured as much. I'm also doing some multi store work indeed. Thanks for committing!

Status: Fixed » Closed (fixed)

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