You are here

Order history page inaccessible for all roles except arministrator

There is a bug in Drupal Commerce concerning access to particular user order history view type page ( Path:/user/%/orders).
If there are custom roles except "administrator", even if the permission granted, the system returns "page not found" 404 error for users with custom roles.

Solution: 

Edit "User Orders details" view. Under "Advanced" section there is a contextual filter on order user IDs (Commerce Order: Uid). Edit that filter, scroll down to "When the filter value IS in the URL or a default is provided" section and under "Grant access for the selected roles" validation criteria check needed role(s). Then just save the view.

Website fix request form

If you have problems with the website based on Drupal or WordPress, please feel free to contact us: