Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
Your project page says that This module has been included with Drupal 8 core, but I am not able to find a way to add custom line item there with Drupal 8, could you please tell me how to do it with Drupal 8 or point me to a tutorial/documentation for doing this? thank you.
Comments
Comment #2
caspervoogt CreditAttribution: caspervoogt at Plethora commentedThis looks like an error to me. Looking at https://www.drupal.org/project/contrib_tracker/issues/2735517, that issue was closed as "won't fix". So it is NOT included in Drupal 8 core as far as I know, and as far as I know you can't add such a line item in Drupal 8. If someone knows how, could you please explain how to do this?
Comment #3
JohnLinux CreditAttribution: JohnLinux commentedI am also need to have this in Drupal 8. anyone?
Comment #4
lisastreeter CreditAttribution: lisastreeter at Centarro commentedI don't have any personal experience with using this module, but in Commerce 2.x (D8), you can add fields to Order Item types. And then use "Manage form display" to add fields to the "Add to cart" display.
There was an issue with Order item fields not being taken into account when merging cart items. (So if you added two items with the same product but different customizations, they'd be merged into a single line item.) But this issue has just been fixed: Issue #2915163.
As far as I know, there are no other blockers. You just need to use "order item types" instead of "line item types" for your customizable products.