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 have a shipping address profile for my orders; however, it doesn't show on the template. The spot for shipping shows, but nothing is there.
Comments
Comment #1
BernieCram CreditAttribution: BernieCram commentedhey jsimonis,
Have a look first at the most basic. Go to admin/commerce/config/order/display/invoice and make sure that shipping information is not in fact hidden.
Hopefully, this is all it is.
B
Comment #2
jsimonis CreditAttribution: jsimonis commentedYes! I was hoping it was just something simple that I was missing. Thank you so much!
Comment #3
jsimonis CreditAttribution: jsimonis commentedShucks. It was hidden and I turned it so it is visible, but when I look at the invoice, it still doesn't show.
When I go to the print invoice page, it isn't there and that is what the people who do the shipping will use (a page like /admin/commerce/orders/32/view/print). It does show now on the view of the order (/admin/commerce/orders/32), just not on the invoice.
Checked the log and this is what it shows:
Notice: Undefined index: shipping in include() (line 54 of /home/devtgci/public_html/sites/all/modules/commerce_invoice_receipt/theme/commerce-order-invoice-view.tpl.php).
So it appears that maybe the call to the shipping address in the template is incorrect?
Comment #4
jsimonis CreditAttribution: jsimonis commentedI got it working - somehow it got changed from customer_shipping to just shipping. Fixed that and it works now. Thanks!
Comment #5
BernieCram CreditAttribution: BernieCram commentedjsimonis, well done! I'll raise my glass to you on Friday night.
Cheers
B
Comment #6
jsimonis CreditAttribution: jsimonis commentedThanks! Always feels good to find the problem and get it fixed. :)