Make POD image for product view a bit more sane
This commit is contained in:
parent
536e1aa3eb
commit
ad2724fd2f
|
@ -75,7 +75,7 @@
|
|||
${render_field_readonly(form.fieldset.size)}
|
||||
${render_field_readonly(form.fieldset.case_pack)}
|
||||
</div>
|
||||
% if image:
|
||||
% if image_url:
|
||||
${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=False)}
|
||||
% endif
|
||||
</div>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue