Skip to content

Instantly share code, notes, and snippets.

@speedupmate
Created February 1, 2015 08:15
Show Gist options
  • Save speedupmate/9a1c74e4c239f615a2b7 to your computer and use it in GitHub Desktop.
Save speedupmate/9a1c74e4c239f615a2b7 to your computer and use it in GitHub Desktop.
addresspreview template to skip empty values
<div class="oscaddresspreview">
<div class="name">#{billing:firstname} #{billing:lastname}</div>
<div class="email">#{billing:email}</div>
<div class="company">#{billing:company}</div>
<div class="street1">#{billing:street1}</div>
<div class="street2">#{billing:street2}</div>
<div class="address">#{billing:city}, #{billing:region}, #{billing:postcode}</div>
<div class="country">#{billing:country_id}</div>
<div class="phone">#{billing:telephone}</div>
</div>
and css accordingly:
.oscaddresspreview div {
clear: both;
min-height: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment