Forum
Distinguish shipping and billing addresses in list template.
I'm using the default list template to display customer addresses on a confirmation page with perch_shop_customer_addresses();
.
Is there a way to label the shipping and billing addresses in this template so a customer knows which is which?
Ta.
<perch:before>
<table class="table table-bordered">
</perch:before>
<tr>
<th>
<perch:shop id="addressFirstName" /> <perch:shop id="addressLastName" />
<perch:if exists="addressCompany"><br /><perch:shop id="addressCompany" /></perch:if>
</th>
<td>
<perch:if exists="address_1"><perch:shop id="address_1" /><br /></perch:if>
<perch:if exists="address_2"><perch:shop id="address_2" /><br /></perch:if>
<perch:if exists="city"><perch:shop id="city" /> <br /></perch:if>
<perch:if exists="county"><perch:shop id="county" /> <br /></perch:if>
<perch:if exists="postcode"><perch:shop id="postcode" /> <br /></perch:if>
<perch:if exists="country_name"><perch:shop id="country_name" /></perch:if>
</td>
<td>
<a href="/shop/addresses/<perch:shop id="addressID" />">Edit</a>
</td>
</tr>
<perch:after>
</table>
</perch:after>
I think any address can be used for either purpose, so there's not billing and shipping addresses at that point - just a list of recorded addresses.
I'm using the unaltered customer_create.html template which seems to designate a shipping & billing address.
Ok. Have you checked
<perch:showall />
to see what's available to you in the template?Ah yes, addressTitle. Many thanks.
Thank you