From 0fa888efafba732f9de7450f795d3f072227d944 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 16 Nov 2021 17:23:56 -0600 Subject: [PATCH] Fix bug when product has empty suggested price --- tailbone/views/products.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 2f7bf02d..a59df32f 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -558,8 +558,10 @@ class ProductView(MasterView): def render_suggested_price(self, product, column): text = self.render_price(product, column) + if not text: + return - if text and self.show_price_effective_dates(): + if self.show_price_effective_dates(): history = self.get_suggested_price_history(product) if history: date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()