- Issue created by @umac_de
- Status changed to Closed: won't fix
9 months ago 8:15am 22 July 2024 - 🇮🇱Israel jsacksick
This is a support request which are generally not answered from this queue.
With the abundance of support available in Drupal Answers, the Drupal focused Stack Exchange site, we are no longer answering support requests in the issue queue.
Support requests opened here will be closed (won't fix), so please search for existing answers or post new questions at:
https://drupal.stackexchange.com (using the drupal-commerce tag)
FYI, once you override the template from the theme, you have to rebuild caches so your override is taken into account.
Also, you can get the first name and last name using the following code:
/** @var Drupal\commerce_order\Entity\OrderInterface $order */ $order = $variables['order_entity']; if ($billing_profile = $order->getBillingProfile()) { /** @var \Drupal\address\AddressInterface $address */ $address = $billing_profile->get('address')->first(); // First name. $address->getGivenName(), // Last name. $address->getFamilyName(), }