Jump to content

Would like to Tweak Packing Slip

Dirty Butter

Recommended Posts

I need help with this section of code in orders.print.php so an address that DID NOT include a State/Province would not end up with the , on a line by itself.

{$order.title_d} {$order.first_name_d} {$order.last_name_d}<br />

	 {if !empty($order.company_name_d)}{$order.company_name_d}<br />{/if}

	 {$order.line1_d} <br />

	 {if !empty($order.line2_d)}{$order.line2_d}<br />{/if}

	 {$order.town_d}<br />

	 {$order.state_d}, {$order.postcode_d}<br />


Most recent order with this issue looks like this on the Packing Slip at the end of the delivery address:


, 73480


There should be some way to use the {if !empty... coding that is used for business names and 2nd line to street address, but I couldn't figure it out. Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...