Changed the way we get info in dcl order_detail template
This commit is contained in:
		
					parent
					
						
							
								ed9e5c591c
							
						
					
				
			
			
				commit
				
					
						a3c3a5cd2e
					
				
			
		
					 1 changed files with 8 additions and 6 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| {% extends "hosting/base_short.html" %} | ||||
| {% load staticfiles bootstrap3 %} | ||||
| {% load i18n %} | ||||
| {% load custom_tags %} | ||||
| {% block content %} | ||||
| 
 | ||||
| <div class="order-detail-container"> | ||||
|  | @ -27,15 +28,16 @@ | |||
|     			<div class="col-xs-6"> | ||||
|     				<address> | ||||
|                     <h3><b>{% trans "Billed To:"%}</b></h3> | ||||
|     					{{user.name}}<br> | ||||
|                         {{order.billing_address.street_address}},{{order.billing_address.postal_code}}<br> | ||||
|                         {{order.billing_address.city}}, {{order.billing_address.country}}. | ||||
|                     {% with request.session.billing_address_data as billing_address %} | ||||
|     					{{request.session.user.name}}<br> {{billing_address|get_value_from_dict:'street_address'}}, {{billing_address|get_value_from_dict:'postal_code'}}<br> | ||||
|                         {{billing_address|get_value_from_dict:'city'}}, {{billing_address|get_value_from_dict:'country'}}. | ||||
|                     {% endwith %} | ||||
|     				</address> | ||||
|     			</div> | ||||
|                 <div class="col-xs-6 text-right"> | ||||
|                     <address> | ||||
|                         <strong>{% trans "Date"%}:</strong><br> | ||||
|                         {{order.created_at}}<br><br> | ||||
|                         {% now "jS F Y" %}<br><br> | ||||
|                     </address> | ||||
| 
 | ||||
|                 </div> | ||||
|  | @ -45,7 +47,7 @@ | |||
|     				<address> | ||||
|     					<strong>{% trans "Payment Method:"%}</strong><br> | ||||
|     					{{order.cc_brand}} ending **** {{order.last4}}<br> | ||||
|     					{{user.email}} | ||||
|     					{{request.session.user.email}} | ||||
|     				</address> | ||||
|     			</div> | ||||
|     		</div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue