Order item title isn't set from form field using handler option.

Created on 28 April 2023, over 1 year ago
Updated 5 June 2024, 6 months ago

Problem/Motivation

So i've seen that you can set the order item title using the variations, but in the handler settings there is also a option where you can set the title using a field within your form, as followed:

Going through the code and debugging a little bit it looks like the title gets set, as you can see in the following screenshot:

this is in CommerceWebformOrderHandler.php line 788 in the postSave() function.

But in the end it keeps getting the title from the product itself. As you can see in the cart.png. it keeps showing the title as BW, which is the name of the product. but not the title that was shown in the debugger.

Steps to reproduce

Proposed resolution

Information about what we might do wrong.

The option to set the order item title using field values in the form.

Remaining tasks

Provide information.
or

  1. Write a patch
  2. review the patch
  3. commit the changes

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands arantxio Dordrecht

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024