You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My spree installation allows orders without a shipping address (i.e. digital downloaded products).
Therefore, @order.ship_address can be nil, which breaks the PDF template code that prints the shipping address.
You can imagine a similar scenario could manifest itself for a nil billing address (e.g. coupon code for free purchase may not require a billing address).
One simple solution is to detect a nil address in the invoice templates and display a message like "No shipping" (pulled from the locale files perhaps?).
Thoughts?
The text was updated successfully, but these errors were encountered:
My spree installation allows orders without a shipping address (i.e. digital downloaded products).
Therefore,
@order.ship_address
can benil
, which breaks the PDF template code that prints the shipping address.You can imagine a similar scenario could manifest itself for a
nil
billing address (e.g. coupon code for free purchase may not require a billing address).One simple solution is to detect a
nil
address in the invoice templates and display a message like "No shipping" (pulled from the locale files perhaps?).Thoughts?
The text was updated successfully, but these errors were encountered: