diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 623d1db8..72549393 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -75,7 +75,7 @@ ${render_field_readonly(form.fieldset.size)} ${render_field_readonly(form.fieldset.case_pack)} - % if image: + % if image_url: ${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=False)} % endif diff --git a/tailbone/views/products.py b/tailbone/views/products.py index b7eb8b7c..ccd167ec 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -313,8 +313,6 @@ class ProductsView(MasterView): if product.upc: kwargs['image_url'] = pod.get_image_url(self.rattail_config, product.upc) kwargs['image_path'] = pod.get_image_path(self.rattail_config, product.upc) - if os.path.exists(kwargs['image_path']): - kwargs['image'] = True return kwargs def edit(self):