Add category information to the checkout confirmation object

Created on 24 September 2018, over 6 years ago
Updated 4 April 2025, 6 days ago

Drupal 7

# Add a checkboxes list on the global Affirm settings form where you identify all of your product category related taxonomy vocabularies.
# On checkout complete, look for $line_item->data['context']['entity'] where the entity_type is node.
# If you find one, load it, load its bundle information, and see which taxonomy vocabularies its term reference fields reference.
# For any that match vocabularies enabled in the settings form, include their referenced term names (not IDs) in a list in the checkout object.

- API function just gets the enabled vocabularies
- API function to identify term reference fields that match those vocabularies

Drupal 8

# Add the same checkboxes list to the settings form.
# From the product variation, load its product, and do the same as above.

πŸ“Œ Task
Status

Postponed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024