From eb28fc2e3c6716d2db44a856316360bc3ef109b3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 8 Nov 2021 13:15:10 -0600 Subject: [PATCH] Fall back to empty string for product regular price i think this avoids a bug when a product has no regular price but does have a current price --- tailbone/views/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 3b6f45f0..b1feecc3 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -479,7 +479,7 @@ class ProductView(MasterView): return self.handler.render_price(price) def render_current_price_for_grid(self, product, field): - text = self.render_price(product, field) + text = self.render_price(product, field) or "" price = product.current_price if price: