2

I want to add 'Notes' textarea for adding addtional message by customer while placing the order.

I have added additional textarea in 'Order types' page (/admin/commerce/config/order-types/default/edit/fields). It is displaying in order page but not in checkout page.

Example: Customer is placing an order for Toys and they want to add message saying 'Please deliver in 2 days..'

Edit: I have seen same question in Drupal 7. But there is no 'Commerce Fieldgroup Panes' module in Drupal 8.

2 Answers 2

1

You will need to write a custom checkout pane plugin, I'm afraid.

Docs here: https://docs.drupalcommerce.org/commerce2/developer-guide/checkout/create-custom-checkout-pane

1
  • I'm able to add the textarea using using '$pane_form['customer_message'] = array( '#type' => 'textarea', '#title' => t('Customer Message:'), );' and not sure where it is storing and how I can get this message into order page.
    – shanidkv
    Commented Dec 11, 2017 at 17:18
-1

You can add custom fields using profile > Customer by following path.

/admin/config/people/profiles/manage/customer/fields

You must have installed Profile module also with Commerce 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.