Show some more product attributes in custorder item selection popup

This commit is contained in:
Lance Edgar 2021-11-06 17:37:05 -05:00
parent 7a5ba0503a
commit 43bbc2a29e
2 changed files with 79 additions and 2 deletions

View file

@ -285,6 +285,7 @@ class CustomerOrderView(MasterView):
'allow_contact_info_choice': self.handler.allow_contact_info_choice(),
'restrict_contact_info': self.handler.should_restrict_contact_info(),
'order_items': items,
'product_key_label': self.rattail_config.product_key_title(),
})
return self.render_to_response(template, context)
@ -625,6 +626,10 @@ class CustomerOrderView(MasterView):
'status_text': row.status_text,
}
case_price = self.handler.get_case_price_for_row(row)
data['case_price'] = six.text_type(case_price) if case_price is not None else None
data['case_price_display'] = app.render_currency(case_price)
if self.handler.product_price_may_be_questionable():
data['price_needs_confirmation'] = row.price_needs_confirmation