Problem/Motivation

There should be a new checkbox setting in the "Webform Request Settings" of the field settings:

✅ "Only show request webform if product is not available"
Description: Only show Webform Request Link, if the products "orderable" value is false.

Disabled by default (thereby bw-compatible)

Logic is the same as the "Remove" option of the cart button option ("Remove the button, if the products "orderable" value is false.")

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

anybody created an issue. See original summary.

grevil made their first commit to this issue’s fork.

grevil’s picture

Assigned: grevil » Unassigned
Status: Active » Needs review

All done, please review!

anybody’s picture

Assigned: Unassigned » thomas.frobieter

Nice work @grevil!!

@thomas.frobieter please RTBC this if it works fine in the project where we needed this. I already applied the patch there, but didn't yet enable the option, because I wasn't sure about existing theme overrides!

LGTM from my side!

thomas.frobieter’s picture

Status: Needs review » Reviewed & tested by the community

  • anybody committed 6ce242eb on 1.x authored by grevil
    [#3554217] feat: Add option to only show the webform if the product is...
anybody’s picture

Assigned: thomas.frobieter » Unassigned
Status: Reviewed & tested by the community » Fixed

Confirming! Merged! Should be released with the next release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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