Problem/Motivation

Not entirely sure what changed with D11 and from which version specifically but the Add price action link is missing due to the price list item add form that doesn't specify a type (bundle).

I don't think it makes sense to pass the "type" via a route parameter since 99% of installations probably stick with product variations... So I'm suggesting we update the route to specify a default bundle as well as altering the local action to pass the first bundle found...

Commerce wishlist is actually suffering from the same issue (See #3536634: Specify a default bundle for the add form route since it is not passed as a route parameter.). Since this is a pattern we use in multiple contrib modules, we can expect the same issue to happen with other Commerce contrib modules too.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jsacksick created an issue. See original summary.

  • jsacksick committed e81a7e8d on 8.x-2.x
    Issue #3536780 by jsacksick: The add price action is missing on D11
    
jsacksick’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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