cart.billingAddress and cart.shippingAddress are both are set to the same address and include custom1 and custom2 fields.

After submitting the order, order.shippingAddress and order.billingAddress have all the correct address information from cart except custom1 and custom2 which are blank.

This is a slightly simplified version of my payment submission form. It's using the manual gateway, no money is taken and the order is set with a status "Payment Pending" and paid status "Unpaid". Invoices are paid elsewhere for now.

<form method="POST">

  {{ csrfInput() }}

  {{ redirectInput('/account/invoice?number='~cart.number) }}
  <input type="hidden" name="action" value="commerce/payments/pay"/>
  <input type="hidden" name="gatewayId" value="2"/>
  <input type="hidden" name="savePaymentSource" value="0" />

  <button type="submit" class="button">Confirm order and generate invoice</button>


Why isn't the information in the fields custom1 and custom2 being set on the order addresses?

1 Answer 1


This was a bug in commerce and it has now been fixed.

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.