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.
I would like to add a "Map it on Google" link to the .tpl file, but I can't figure out how to break apart the $info['customer_shipping'] component.
I tried something like this as a test but I am clearly missing something...:
http://maps.google.com/?q= print $build['commerce_order'][$order->order_id]['commerce_customer_shipping'][0]['#value'];
Any clues or pointers would be appreciated...
Comments
Comment #1
bearstar CreditAttribution: bearstar commentedIf anyone else wants to add this, here is the code I used.
Comment #1.0
bearstar CreditAttribution: bearstar commentedfixing my code snippet